From 712867d2193afe52ac63964c0c4e08962040be95 Mon Sep 17 00:00:00 2001 From: prashant Date: Sat, 5 Jun 2021 00:55:39 +0530 Subject: made changes suggested by ToxicKidz --- bot/exts/evergreen/rps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 2634be21..dcb7dce1 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -37,8 +37,7 @@ class RPS(commands.Cog): player_mention = ctx.author.mention if move not in CHOICES and move not in SHORT_CHOICES: - await ctx.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") - return + raise commands.BadArgument(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") bot_move = choice(CHOICES) # value of player_result will be from (-1, 0, 1) as (lost, tied, won). -- cgit v1.2.3