From c6f2fe1011bea62c556decf8dc9ce1572afc5837 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Mar 2017 13:52:07 +0200 Subject: [PATCH] Sistemato help --- grandbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grandbot.py b/grandbot.py index adec8658..181e9ceb 100644 --- a/grandbot.py +++ b/grandbot.py @@ -231,7 +231,7 @@ Sintassi: `/help [comando]`""" await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/help [comando]`", parse_mode="Markdown") else: if arguments[0] in b.commands: - await update.message.reply(bot, b.commands[arguments[0]].__doc__, parse_mode="Markdown") + await update.message.reply(bot, b.commands[arguments[0] + "_telegram"].__doc__, parse_mode="Markdown") else: await update.message.reply(bot, "⚠ Il comando specificato non esiste.") @@ -246,7 +246,7 @@ Sintassi: `!help [comando]`""" bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!help [comando]`") else: if arguments[0] in b.commands: - bot.send_message(message.channel, b.commands[arguments[0]].__doc__) + bot.send_message(message.channel, b.commands[arguments[0] + "_discord"].__doc__) else: bot.send_message(message.channel, "⚠ Il comando specificato non esiste.")