aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/tic_tac_toe.py
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-08-17 08:45:19 -0500
committerGravatar GitHub <[email protected]>2021-08-17 08:45:19 -0500
commite098273a3ddd3afd8b254aad439b08fc380ff40e (patch)
tree21e57bd813ffd5cc05aee3844cb6b362f10d6a0e /bot/exts/evergreen/tic_tac_toe.py
parentRemoved a massive it block (diff)
parentMerge pull request #792 from python-discord/more-py-topics (diff)
Merge branch 'main' into main
Diffstat (limited to 'bot/exts/evergreen/tic_tac_toe.py')
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py
index 48e8e142..164e056d 100644
--- a/bot/exts/evergreen/tic_tac_toe.py
+++ b/bot/exts/evergreen/tic_tac_toe.py
@@ -318,9 +318,14 @@ class TicTacToe(Cog):
return
game = self.games[game_id - 1]
+ if game.draw:
+ description = f"{game.players[0]} vs {game.players[1]} (draw)\n\n{game.format_board()}"
+ else:
+ description = f"{game.winner} :trophy: vs {game.loser}\n\n{game.format_board()}"
+
embed = discord.Embed(
title=f"Match #{game_id} Game Board",
- description=f"{game.winner} :trophy: vs {game.loser}\n\n{game.format_board()}"
+ description=description,
)
await ctx.send(embed=embed)