Remove unnecessary edits
This commit is contained in:
parent
9ebabc54da
commit
106db0dc23
6
ubot.py
6
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)'
|
||||
|
Loading…
x
Reference in New Issue
Block a user