diff options
| author | 2019-08-14 09:39:41 +0200 | |
|---|---|---|
| committer | 2019-08-14 09:39:41 +0200 | |
| commit | 6a7aec50e891557c08e42b473fc3770f04537a1c (patch) | |
| tree | 7d050e6b192b2682954955157a0739b2948f02ba /bot/seasons | |
| parent | Apply suggestions from code review (diff) | |
added header to message. so the board looks correct on compact mode.
Diffstat (limited to 'bot/seasons')
| -rw-r--r-- | bot/seasons/evergreen/minesweeper.py | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py index 27ca9675..9333bb68 100644 --- a/bot/seasons/evergreen/minesweeper.py +++ b/bot/seasons/evergreen/minesweeper.py @@ -135,7 +135,7 @@ class Minesweeper(commands.Cog):          if ctx.guild:              await ctx.send(f"{ctx.author.mention} is playing Minesweeper") -            chat_msg = await ctx.send(self.format_for_discord(revealed_board)) +            chat_msg = await ctx.send(f"Here's there board!\n{self.format_for_discord(revealed_board)}")          else:              chat_msg = None @@ -143,7 +143,7 @@ class Minesweeper(commands.Cog):              f"Play by typing: `{Client.prefix}ms reveal xy [xy]` or `{Client.prefix}ms flag xy [xy]` \n"              f"Close the game with `{Client.prefix}ms end`\n"          ) -        dm_msg = await ctx.author.send(self.format_for_discord(revealed_board)) +        dm_msg = await ctx.author.send(f"Here's your board!\n{self.format_for_discord(revealed_board)}")          self.games[ctx.author.id] = Game(              board=board, @@ -157,9 +157,9 @@ class Minesweeper(commands.Cog):          """Update both playing boards."""          game = self.games[ctx.author.id]          await game.dm_msg.delete() -        game.dm_msg = await ctx.author.send(self.format_for_discord(game.revealed)) +        game.dm_msg = await ctx.author.send(f"Here's your board!\n{self.format_for_discord(game.revealed)}")          if game.activated_on_server: -            await game.chat_msg.edit(content=self.format_for_discord(game.revealed)) +            await game.chat_msg.edit(content=f"Here's there board!\n{self.format_for_discord(game.revealed)}")      @commands.dm_only()      @minesweeper_group.command(name="flag")  |