aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-06-12 14:22:56 -0700
committerGravatar GitHub <[email protected]>2021-06-12 14:22:56 -0700
commit210cd2701c935d7a12e884afa3a100441f6d7964 (patch)
tree451dc89e914551a98e09690b7459453caf722d34
parentAdd transparent border to new Github octicons (diff)
parentMerge pull request #773 from CasualCoder99/show-match-draw (diff)
Merge branch 'main' into new-github-emoji
-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)