aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Cam Caswell <[email protected]>2021-08-25 15:14:41 -0400
committerGravatar Cam Caswell <[email protected]>2021-08-25 15:14:41 -0400
commit4da145177397206c7acfbb6dad23bdb3666ab2ac (patch)
treefe903c4a967b5ce63534d03deee4070c6a948d35 /bot
parentUse with_role decorator for stop command (diff)
Add an error message for trying to stop a nonexistent game
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/duck_game.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py
index 3f122d84..10ff49aa 100644
--- a/bot/exts/evergreen/duck_game.py
+++ b/bot/exts/evergreen/duck_game.py
@@ -319,6 +319,7 @@ class DuckGamesDirector(commands.Cog):
try:
game = self.current_games.pop(ctx.channel.id)
except KeyError:
+ await ctx.send("No game currently running in this channel")
return
await self.end_game(game, end_message="Game canceled.")