diff --git a/ubot.py b/ubot.py index ab052a1..fd76a45 100644 --- a/ubot.py +++ b/ubot.py @@ -14,8 +14,7 @@ async def edit(event): if '.alive' in msg: rpl = "Userbot alive and well!" - msg = event.text.replace(msg, rpl) - await event.edit(msg) + await event.edit(rpl) if '.shg' in msg: rpl = f"¯\_(ツ)_/¯" @@ -74,8 +73,7 @@ async def edit(event): if '.fire' in msg: rpl = 'IMA FIRING MAH LAZER' - msg = event.text.replace(msg, rpl) - await event.edit(msg) + await event.edit(rpl) if '.sauce' in msg: rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'