diff options
author | 2021-08-25 15:19:49 -0400 | |
---|---|---|
committer | 2021-08-25 15:19:49 -0400 | |
commit | fceb50507bf34340615addca41bf5b920d951e15 (patch) | |
tree | 5d33943388973c6086544dc6764a3cd430b9445b /bot | |
parent | Add an error message for trying to stop a nonexistent game (diff) |
Add an error message for trying to start a game while one is already running
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/evergreen/duck_game.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index 10ff49aa..16fb534d 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -185,6 +185,7 @@ class DuckGamesDirector(commands.Cog): async def start_game(self, ctx: commands.Context) -> None: """Generate a board, send the game embed, and end the game after a time limit.""" if ctx.channel.id in self.current_games: + await ctx.send("There's already a game running!") return minimum_solutions, = random.choices(range(len(SOLN_DISTR)), weights=SOLN_DISTR) |