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