Tidy up
This commit is contained in:
parent
5cdfc335cf
commit
ce82658351
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue