1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Rename cmd_search to cmd_cerca for consistency

This commit is contained in:
Steffo 2019-01-29 13:44:43 +01:00
parent 04868e2bfb
commit cd0a592c66

View file

@ -296,7 +296,7 @@ def cmd_vote(bot: Bot, update: Update):
@catch_and_report @catch_and_report
def cmd_search(bot: Bot, update: Update): def cmd_cerca(bot: Bot, update: Update):
session = db.Session() session = db.Session()
try: try:
try: try:
@ -745,7 +745,7 @@ def process(arg_discord_connection):
u.dispatcher.add_handler(CommandHandler("r", cmd_roll)) u.dispatcher.add_handler(CommandHandler("r", cmd_roll))
u.dispatcher.add_handler(CommandHandler("mm", cmd_mm)) u.dispatcher.add_handler(CommandHandler("mm", cmd_mm))
u.dispatcher.add_handler(CommandHandler("matchmaking", 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)) u.dispatcher.add_handler(CallbackQueryHandler(on_callback_query))
logger.info("Handlers registered.") logger.info("Handlers registered.")
u.start_polling() u.start_polling()