From 6eabadc2aefbc8e85ce974392e80158b240ebbfb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 1 Feb 2019 19:23:30 +0100 Subject: [PATCH] Remove unused aliases --- telegrambot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/telegrambot.py b/telegrambot.py index 7298cdc3..0534b951 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -312,7 +312,7 @@ def cmd_cerca(bot: Bot, update: Update): session.close() @catch_and_report -def cmd_regex_diario(bot: Bot, update: Update): +def cmd_regex(bot: Bot, update: Update): session = db.Session() try: try: @@ -772,9 +772,7 @@ def process(arg_discord_connection): u.dispatcher.add_handler(CommandHandler("mm", cmd_mm)) u.dispatcher.add_handler(CommandHandler("matchmaking", cmd_mm)) u.dispatcher.add_handler(CommandHandler("cerca", cmd_cerca)) - u.dispatcher.add_handler(CommandHandler("search", cmd_cerca)) - u.dispatcher.add_handler(CommandHandler("diariosearch", cmd_cerca)) - u.dispatcher.add_handler(CommandHandler("regex", cmd_regex_diario)) + u.dispatcher.add_handler(CommandHandler("regex", cmd_regex)) u.dispatcher.add_handler(CallbackQueryHandler(on_callback_query)) logger.info("Handlers registered.") u.start_polling()