From 828b2f3356a6c605bc43747c5e0ed1bd3e6e27e0 Mon Sep 17 00:00:00 2001 From: angerstoner Date: Fri, 6 Apr 2018 02:06:37 +0200 Subject: [PATCH] added kill (first version) --- schneiderbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schneiderbot.py b/schneiderbot.py index 235a25e..f91f36f 100644 --- a/schneiderbot.py +++ b/schneiderbot.py @@ -104,6 +104,9 @@ def sendDog(bot, update): dog = pydog.PyDog() bot.send_photo(chat_id=update.message.chat_id, photo=dog.get_random_image()) +def kill(bot, update): + """kill me pls""" + update.message.reply_text(update.message.from_user.first_name + " died") def magie(bot, update): """MAGIEEEEEE""" @@ -191,6 +194,7 @@ def main(): dp.add_handler(CommandHandler("cat", sendCat)) dp.add_handler(CommandHandler("dog", sendDog)) dp.add_handler(CommandHandler("shrug", shrug)) + dp.add_handler(CommandHandler("kill", kill)) # log all errors