Add .help command
This commit is contained in:
parent
3a1b4cdc46
commit
936647fe28
12
ubot.py
12
ubot.py
@ -65,7 +65,7 @@ async def edit(event):
|
|||||||
name = (sender.first_name)
|
name = (sender.first_name)
|
||||||
|
|
||||||
rpl = f'**Stats for {name}**\n'
|
rpl = f'**Stats for {name}**\n'
|
||||||
rpl += f'**Private chats:** {pms} ({pms - bots} users / {bots} bots)\n'
|
rpl += f'**Private:** {pms} ({pms - bots} users / {bots} bots)\n'
|
||||||
rpl += f'**Groups:** {groups} ({gadmin} admin / {gcreator} creator)\n'
|
rpl += f'**Groups:** {groups} ({gadmin} admin / {gcreator} creator)\n'
|
||||||
rpl += f'**Channels:** {chans} ({cadmin} admin / {ccreator} creator)\n'
|
rpl += f'**Channels:** {chans} ({cadmin} admin / {ccreator} creator)\n'
|
||||||
rpl += f'**Unread:** {unread} ({mentions} mentions)\n'
|
rpl += f'**Unread:** {unread} ({mentions} mentions)\n'
|
||||||
@ -79,5 +79,15 @@ async def edit(event):
|
|||||||
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
|
rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)'
|
||||||
await event.edit(rpl)
|
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 += '.sauce - Get the bot\'s source code.\n'
|
||||||
|
rpl += '.help - Show this help message.'
|
||||||
|
await event.edit(rpl)
|
||||||
|
|
||||||
client.start()
|
client.start()
|
||||||
client.run_until_disconnected()
|
client.run_until_disconnected()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user