This commit is contained in:
Scott Wallace 2020-07-14 17:47:32 +01:00
parent 5cdfc335cf
commit ce82658351
2 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
maubot: 0.1.0 maubot: 0.1.0
id: sh.wallace.matrix.shameotron id: sh.wallace.matrix.shameotron
version: 0.0.3 version: 0.0.4
license: MIT license: MIT
modules: modules:
- shameotron - shameotron

View file

@ -52,8 +52,12 @@ class ShameOTron(Plugin):
""" """
Class method to update an existing message event Class method to update an existing message event
""" """
content = TextMessageEventContent(msgtype=MessageType.NOTICE, body=text, format=Format.HTML, content = TextMessageEventContent(
formatted_body=markdown.render(text)) msgtype=MessageType.NOTICE,
body=text,
format=Format.HTML,
formatted_body=markdown.render(text)
)
content.set_edit(event_id) content.set_edit(event_id)
await self.client.send_message(room_id, content) await self.client.send_message(room_id, content)