From 09ec2b79213535ebff2f72628d766f1323c67f12 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 3 Nov 2018 18:46:59 +0100 Subject: [PATCH] remove banny stuff --- telegrambot.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/telegrambot.py b/telegrambot.py index f08a077b..03db9f88 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -529,12 +529,6 @@ def cmd_roll(bot: Bot, update: Update): bot.send_message(update.message.chat.id, f"🎲 {result}") -@catch_and_report -def cmd_exception(bot: Bot, update: Update): - if __debug__: - raise Exception("/exception was called") - - def process(arg_discord_connection): if arg_discord_connection is not None: global discord_connection @@ -553,7 +547,6 @@ def process(arg_discord_connection): u.dispatcher.add_handler(CommandHandler("balurage", cmd_balurage)) u.dispatcher.add_handler(CommandHandler("diario", cmd_diario)) u.dispatcher.add_handler(CommandHandler("vote", cmd_vote)) - u.dispatcher.add_handler(CommandHandler("ban", cmd_ban)) u.dispatcher.add_handler(CommandHandler("eat", cmd_eat)) u.dispatcher.add_handler(CommandHandler("ship", cmd_ship)) u.dispatcher.add_handler(CommandHandler("profile", cmd_profile)) @@ -563,8 +556,6 @@ def process(arg_discord_connection): u.dispatcher.add_handler(CommandHandler("markov", cmd_markov)) u.dispatcher.add_handler(CommandHandler("roll", cmd_roll)) u.dispatcher.add_handler(CommandHandler("r", cmd_roll)) - if __debug__: - u.dispatcher.add_handler(CommandHandler("exception", cmd_exception)) u.dispatcher.add_handler(CallbackQueryHandler(on_callback_query)) logger.info("Handlers registered.") u.start_polling()