forked from kate/uniborg
aesthetics: support editing messages
This commit is contained in:
parent
02b1a949b0
commit
a851b5193e
|
@ -18,6 +18,7 @@ def aesthetify(string):
|
|||
|
||||
|
||||
@borg.on(events.NewMessage(pattern=r'.ae\s+(.+)', outgoing=True))
|
||||
@borg.on(events.MessageEdited(pattern=r'.ae\s+(.+)', outgoing=True))
|
||||
async def _(event):
|
||||
text = event.pattern_match.group(1)
|
||||
text = "".join(aesthetify(text))
|
||||
|
|
Loading…
Reference in New Issue