mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +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>`"""
|
||||
# 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>`",
|
||||
parse_mode="Markdown")
|
||||
return
|
||||
|
@ -467,7 +467,7 @@ async def roll_discord(bot, message, arguments):
|
|||
|
||||
Sintassi: `!roll <max>`"""
|
||||
# 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>`")
|
||||
return
|
||||
# Roll the dice!
|
||||
|
|
Loading…
Reference in a new issue