Add /fish easter egg
This commit is contained in:
parent
4d5e5ac504
commit
33809c505d
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -16,9 +16,13 @@ def unauth(bot, update):
|
||||||
dbtools.dbHelper().deleteUser(update.message.chat_id)
|
dbtools.dbHelper().deleteUser(update.message.chat_id)
|
||||||
bot.sendMessage(chat_id=update.message.chat_id, text=strings.unauth % setuptools.url())
|
bot.sendMessage(chat_id=update.message.chat_id, text=strings.unauth % setuptools.url())
|
||||||
|
|
||||||
|
def fish(bot, update):
|
||||||
|
bot.sendMessage(chat_id=update.message.chat_id, text="Yummy! Thanks! :3")
|
||||||
|
|
||||||
updater.dispatcher.add_handler(telegram.ext.CommandHandler("start", start))
|
updater.dispatcher.add_handler(telegram.ext.CommandHandler("start", start))
|
||||||
updater.dispatcher.add_handler(telegram.ext.CommandHandler("auth", auth))
|
updater.dispatcher.add_handler(telegram.ext.CommandHandler("auth", auth))
|
||||||
updater.dispatcher.add_handler(telegram.ext.CommandHandler("unauth", unauth))
|
updater.dispatcher.add_handler(telegram.ext.CommandHandler("unauth", unauth))
|
||||||
|
updater.dispatcher.add_handler(telegram.ext.CommandHandler("fish", fish))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
updater.start_polling()
|
updater.start_polling()
|
||||||
|
|
Loading…
Reference in a new issue