From 6c5c767da16b760429bdf264590be3b36c0cbf76 Mon Sep 17 00:00:00 2001 From: Quentin Date: Wed, 4 Apr 2018 23:05:44 +0200 Subject: [PATCH] CatDog! Hoste ich morgen selbst --- schneiderbot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schneiderbot.py b/schneiderbot.py index 235a25e..f6abb07 100644 --- a/schneiderbot.py +++ b/schneiderbot.py @@ -104,6 +104,10 @@ def sendDog(bot, update): dog = pydog.PyDog() bot.send_photo(chat_id=update.message.chat_id, photo=dog.get_random_image()) +def sendCatDog(bot, update): + """Best of both worlds!""" + catdog = "https://upload.wikimedia.org/wikipedia/en/6/64/CatDog.jpeg" + bot.send_photo(chat_id=update.message.chat_id, photo=catdog) def magie(bot, update): """MAGIEEEEEE""" @@ -190,6 +194,7 @@ def main(): dp.add_handler(CommandHandler("mensa", mensa, pass_args=True)) dp.add_handler(CommandHandler("cat", sendCat)) dp.add_handler(CommandHandler("dog", sendDog)) + dp.add_handler(CommandHandler("catdog", sendCatDog)) dp.add_handler(CommandHandler("shrug", shrug))