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
id: sh.wallace.matrix.shameotron
version: 0.0.3
version: 0.0.4
license: MIT
modules:
- shameotron

View file

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