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

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