1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Sistemato help

This commit is contained in:
Steffo 2017-03-26 13:52:07 +02:00
parent a5b7e836c4
commit c6f2fe1011

View file

@ -231,7 +231,7 @@ Sintassi: `/help [comando]`"""
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/help [comando]`", parse_mode="Markdown") await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/help [comando]`", parse_mode="Markdown")
else: else:
if arguments[0] in b.commands: 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: else:
await update.message.reply(bot, "⚠ Il comando specificato non esiste.") 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]`") bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!help [comando]`")
else: else:
if arguments[0] in b.commands: 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: else:
bot.send_message(message.channel, "⚠ Il comando specificato non esiste.") bot.send_message(message.channel, "⚠ Il comando specificato non esiste.")