add help message
This commit is contained in:
parent
88d3299333
commit
16dc60d10d
1 changed files with 20 additions and 0 deletions
20
ubot.py
20
ubot.py
|
@ -208,6 +208,26 @@ async def main():
|
|||
await asyncio.sleep(10)
|
||||
await client.delete_messages(event.chat_id, [event.id, m.id])
|
||||
|
||||
@client.on(events.NewMessage(outgoing=True, pattern='.help'))
|
||||
async def cmd_help(event):
|
||||
current_time = int(time.time())
|
||||
help_message = f'''
|
||||
Commands for ub4tg
|
||||
* - reply message required
|
||||
|
||||
<code>.ping</code> - check ping (bot is working?)
|
||||
|
||||
<code>.biofuck</code> - run autobioeb in chat (where sent), otional argument 'stop' for stop it
|
||||
|
||||
<code>.biocheck</code> - checks victim if iris bot sent "Служба безопасности лаборатории сообщает" and eat them
|
||||
|
||||
<code>.bstat</code> - check some stats
|
||||
|
||||
* <code>.biostealbackup</code> - reply to avocado file '1234_victims_{my_id}_{current_time}.json' or '1234 users from 0 exp (ch).txt' (aska bot formatted) for import their backup, optional argument 'me' if you want import yourself backup
|
||||
'''
|
||||
await asyncio.sleep(1)
|
||||
await event.edit(help_message)
|
||||
|
||||
await client.run_until_disconnected()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue