Skip to content

Commit

Permalink
Add about command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardor Muminov committed Jul 26, 2017
1 parent 9e693fb commit fbc8684
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,12 @@ async def group_message_event(chat, message):
text = message.get('text')
logger.info('Got message from group at %s', message_date)
await insert_text(chat.bot.pg_pool, sender, text)


@bot.command(r'/about')
async def about_command(chat, match):
text = format_text('''
Бот https://github.com/Uzbek-Developers/uzdevsbot
''')
logger.info('Got about from %s', chat.sender)
await chat.send_text(text)

0 comments on commit fbc8684

Please sign in to comment.