diff options
| author | 2021-09-05 01:12:10 -0400 | |
|---|---|---|
| committer | 2021-09-24 22:03:19 -0400 | |
| commit | 65aec408bc3d50934d543b9124de67720d617bb8 (patch) | |
| tree | 22e03dd7b08537d830c84985be7c57d765346e5a /bot/exts | |
| parent | Add function for appending to claimed answers embed (diff) | |
Bring end_game up to date
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/fun/duck_game.py | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/bot/exts/fun/duck_game.py b/bot/exts/fun/duck_game.py index 1fdc05be..46ea36fe 100644 --- a/bot/exts/fun/duck_game.py +++ b/bot/exts/fun/duck_game.py @@ -311,13 +311,19 @@ class DuckGamesDirector(commands.Cog):          scoreboard_embed.description = scoreboard          await channel.send(embed=scoreboard_embed) +        board_embed, = game.board_msg.embeds +        embed_as_dict = board_embed.to_dict()  # Cannot set embed color after initialization +        embed_as_dict["color"] = discord.Color.red().value +        board_embed = discord.Embed.from_dict(embed_as_dict) +        await self.edit_embed_with_image(game.board_msg, board_embed) + +        found_embed, = game.found_msg.embeds          missed = [ans for ans in game.solutions if ans not in game.claimed_answers]          if missed:              missed_text = "Flights everyone missed:\n" + "\n".join(f"{ans}" for ans in missed)          else:              missed_text = "All the flights were found!" - -        await game.embed_msg.edit(content=f"{missed_text}") +        await self.append_to_found_embed(game, f"\n{missed_text}")      @start_game.command(name="help")      async def show_rules(self, ctx: commands.Context) -> None: | 
