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()