aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Shantanu Singh <[email protected]>2021-06-08 14:17:34 +0530
committerGravatar GitHub <[email protected]>2021-06-08 14:17:34 +0530
commit3e795bb83f1aad33d49b62f9e7edc586424f0e29 (patch)
tree6964b80f51d58d5d85f981f1efb7c5cf0c5cdc15 /bot/exts
parentembed displays draw condition on show command (diff)
resolved linting error with if-else
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py5
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)