diff options
author | 2021-06-08 14:17:34 +0530 | |
---|---|---|
committer | 2021-06-08 14:17:34 +0530 | |
commit | 3e795bb83f1aad33d49b62f9e7edc586424f0e29 (patch) | |
tree | 6964b80f51d58d5d85f981f1efb7c5cf0c5cdc15 | |
parent | embed displays draw condition on show command (diff) |
resolved linting error with if-else
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 37b53304..b50e2b28 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -320,7 +320,10 @@ class TicTacToe(Cog): embed = discord.Embed( title=f"Match #{game_id} Game Board", - description=f"{game.winner} vs {game.loser} (draw)\n\n{game.format_board()}" if game.draw else f"{game.winner} :trophy: vs {game.loser}\n\n{game.format_board()}" + if game.draw: + description = f"{game.winner} vs {game.loser} (draw)\n\n{game.format_board()}" + else: + description = f"{game.winner} :trophy: vs {game.loser}\n\n{game.format_board()}" ) await ctx.send(embed=embed) |