Add .purgeme to help message
This commit is contained in:
parent
2e89400747
commit
c095f324d4
10
ubot.py
10
ubot.py
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user