diff --git a/ubot.py b/ubot.py index fd76a45..601f24a 100644 --- a/ubot.py +++ b/ubot.py @@ -65,7 +65,7 @@ async def edit(event): name = (sender.first_name) 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'**Channels:** {chans} ({cadmin} admin / {ccreator} creator)\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)' 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.run_until_disconnected()