diff --git a/maubot.yaml b/maubot.yaml index 64d2986..8bd84a8 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -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 diff --git a/shameotron.py b/shameotron.py index 52decce..4d61e1f 100644 --- a/shameotron.py +++ b/shameotron.py @@ -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)