From 106db0dc235a6994a077e986e8c5f913a7a2c7e3 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Mon, 15 Mar 2021 01:48:29 +0100 Subject: [PATCH] Remove unnecessary edits --- ubot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)'