Add .purgeme to help message

This commit is contained in:
Michael De Roover 2021-03-21 13:16:44 +01:00
parent 2e89400747
commit c095f324d4
Signed by: vim
GPG Key ID: 075496E232CE04CB

10
ubot.py
View File

@ -74,10 +74,6 @@ async def edit(event):
if '.fire' in msg:
rpl = 'IMA FIRING MAH LAZER'
await event.edit(rpl)
if '.sauce' in msg:
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
await event.edit(rpl)
if '.purgeme' in msg:
count = int(msg.split()[1])
@ -91,12 +87,18 @@ async def edit(event):
rpl = "Purge complete! Purged " + str(count) + " messages."
await client.send_message('me', rpl)
if '.sauce' in msg:
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
await event.edit(rpl)
if '.help' in msg:
rpl = '**Available userbot commands:**\n'
rpl += '.alive - Check whether the bot is running.\n'
rpl += '.shg - ¯\_(ツ)_/¯\n'
rpl += '.stats - Get user account stats.\n'
rpl += '.fire - IMA FIRING MAH LAZER\n'
rpl += '.purgeme - Purge messages.'
rpl += '.sauce - Get the bot\'s source code.\n'
rpl += '.help - Show this help message.\n'
await event.edit(rpl)