aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2021-08-27 22:29:12 +0100
committerGravatar Izan <[email protected]>2021-08-27 22:33:03 +0100
commitcdaf8add882470efbe8fd63453e7457d9078b3d8 (patch)
treea37e96d5305a1cd46254b5db7707cbedbb677724
parentGeneral improvements (diff)
Fix message getting sent twice
Message no longer gets sent twice when no side was provided to the `.coinflip` command
-rw-r--r--bot/exts/evergreen/coinflip.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/evergreen/coinflip.py b/bot/exts/evergreen/coinflip.py
index 3a2ece03..bfd04843 100644
--- a/bot/exts/evergreen/coinflip.py
+++ b/bot/exts/evergreen/coinflip.py
@@ -39,7 +39,9 @@ class CoinFlip(commands.Cog):
message = f"{ctx.author.mention} flipped **{flipped_side}**. "
if not side:
await ctx.send(message)
- elif side == flipped_side:
+ return
+
+ if side == flipped_side:
message += f"You guessed correctly! {Emojis.lemon_hyperpleased}"
else:
message += f"You guessed incorrectly. {Emojis.lemon_pensive}"