mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
fixed syntax check for roll
This commit is contained in:
parent
8a6d9b1555
commit
3548775b18
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ async def roll_telegram(bot, update, arguments):
|
||||||
|
|
||||||
Sintassi: `/roll <max>`"""
|
Sintassi: `/roll <max>`"""
|
||||||
# Check the command syntax
|
# Check the command syntax
|
||||||
if len(arguments) != 0:
|
if len(arguments) != 1:
|
||||||
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/roll <max>`",
|
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/roll <max>`",
|
||||||
parse_mode="Markdown")
|
parse_mode="Markdown")
|
||||||
return
|
return
|
||||||
|
@ -467,7 +467,7 @@ async def roll_discord(bot, message, arguments):
|
||||||
|
|
||||||
Sintassi: `!roll <max>`"""
|
Sintassi: `!roll <max>`"""
|
||||||
# Check the command syntax
|
# Check the command syntax
|
||||||
if len(arguments) != 0:
|
if len(arguments) != 1:
|
||||||
await bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!roll <max>`")
|
await bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!roll <max>`")
|
||||||
return
|
return
|
||||||
# Roll the dice!
|
# Roll the dice!
|
||||||
|
|
Loading…
Reference in a new issue