From c095f324d4060ba9562b5feee18ed4726dafe79c Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Sun, 21 Mar 2021 13:16:44 +0100 Subject: [PATCH] Add .purgeme to help message --- ubot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ubot.py b/ubot.py index 42759ab..1715331 100644 --- a/ubot.py +++ b/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)