aesthetics: support editing messages

This commit is contained in:
Dan Elkouby 2018-05-13 21:07:12 +00:00
parent 02b1a949b0
commit a851b5193e
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ def aesthetify(string):
@borg.on(events.NewMessage(pattern=r'.ae\s+(.+)', outgoing=True)) @borg.on(events.NewMessage(pattern=r'.ae\s+(.+)', outgoing=True))
@borg.on(events.MessageEdited(pattern=r'.ae\s+(.+)', outgoing=True))
async def _(event): async def _(event):
text = event.pattern_match.group(1) text = event.pattern_match.group(1)
text = "".join(aesthetify(text)) text = "".join(aesthetify(text))