From fceb50507bf34340615addca41bf5b920d951e15 Mon Sep 17 00:00:00 2001 From: Cam Caswell Date: Wed, 25 Aug 2021 15:19:49 -0400 Subject: Add an error message for trying to start a game while one is already running --- bot/exts/evergreen/duck_game.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot') 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) -- cgit v1.2.3