Add /fish easter egg

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-08 14:09:00 +01:00
parent 4d5e5ac504
commit 33809c505d

4
bot.py
View file

@ -16,9 +16,13 @@ def unauth(bot, update):
dbtools.dbHelper().deleteUser(update.message.chat_id)
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("auth", auth))
updater.dispatcher.add_handler(telegram.ext.CommandHandler("unauth", unauth))
updater.dispatcher.add_handler(telegram.ext.CommandHandler("fish", fish))
try:
updater.start_polling()