diff options
author | 2021-06-10 13:00:02 +0100 | |
---|---|---|
committer | 2021-06-10 13:00:02 +0100 | |
commit | 66ef47cc06b472ac04ffbd5d759bec9eff125ea8 (patch) | |
tree | b10c4b14aa05bfa9e287a0f3957c28d632773ae6 | |
parent | Merge pull request #595 from Shivansh-007/fix/ttt (diff) | |
parent | display player names in drawn match (diff) |
Merge pull request #773 from CasualCoder99/show-match-draw
embed displays draw condition on show command
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 7 |
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) |