From 3548775b1855ab17154a4e9a25a371b95ddd6fa2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Mar 2017 14:08:11 +0200 Subject: [PATCH] fixed syntax check for roll --- grandbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grandbot.py b/grandbot.py index 3cb171b4..218f2f6e 100644 --- a/grandbot.py +++ b/grandbot.py @@ -454,7 +454,7 @@ async def roll_telegram(bot, update, arguments): Sintassi: `/roll `""" # Check the command syntax - if len(arguments) != 0: + if len(arguments) != 1: await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/roll `", parse_mode="Markdown") return @@ -467,7 +467,7 @@ async def roll_discord(bot, message, arguments): Sintassi: `!roll `""" # 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 `") return # Roll the dice!