From cd0a592c66d9e5520bb6d9490911af0c28b1ad82 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 29 Jan 2019 13:44:43 +0100 Subject: [PATCH] Rename cmd_search to cmd_cerca for consistency --- telegrambot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegrambot.py b/telegrambot.py index 68f998c9..b0157295 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -296,7 +296,7 @@ def cmd_vote(bot: Bot, update: Update): @catch_and_report -def cmd_search(bot: Bot, update: Update): +def cmd_cerca(bot: Bot, update: Update): session = db.Session() try: try: @@ -745,7 +745,7 @@ def process(arg_discord_connection): u.dispatcher.add_handler(CommandHandler("r", cmd_roll)) u.dispatcher.add_handler(CommandHandler("mm", cmd_mm)) u.dispatcher.add_handler(CommandHandler("matchmaking", cmd_mm)) - u.dispatcher.add_handler(CommandHandler("cerca", cmd_search)) + u.dispatcher.add_handler(CommandHandler("cerca", cmd_cerca)) u.dispatcher.add_handler(CallbackQueryHandler(on_callback_query)) logger.info("Handlers registered.") u.start_polling()