aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar prashant <[email protected]>2021-06-05 00:55:39 +0530
committerGravatar prashant <[email protected]>2021-06-05 00:55:39 +0530
commit712867d2193afe52ac63964c0c4e08962040be95 (patch)
treeed8f2946019192b4d853c75d0b435a51f655a194
parent-removed dead code (diff)
made changes suggested by ToxicKidz
-rw-r--r--bot/exts/evergreen/rps.py3
1 files changed, 1 insertions, 2 deletions
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).