From 33809c505d6f65feaa01e179ad2fe21962d0e9e5 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 8 Feb 2017 14:09:00 +0100 Subject: [PATCH] Add /fish easter egg --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 689f712..22e4dc2 100755 --- a/bot.py +++ b/bot.py @@ -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()