diff options
author | 2021-06-07 17:16:15 +0800 | |
---|---|---|
committer | 2021-06-07 17:16:15 +0800 | |
commit | e73fb4a2ced2fd264ec65a828c114cbbeda26d7a (patch) | |
tree | c468b60cbd00b8f6b00043635dc2d4393a001c4b /bot/exts/evergreen/tic_tac_toe.py | |
parent | (tic-tac-toe): Use embeds for showing previous game boards (diff) | |
parent | Merge pull request #758 from OculusMode/master (diff) |
Merge branch 'main' into fix/ttt
Diffstat (limited to 'bot/exts/evergreen/tic_tac_toe.py')
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 6c33ebc4..48e8e142 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -58,7 +58,7 @@ class Player: ) try: - react, _ = await self.ctx.bot.wait_for('reaction_add', timeout=30.0, check=check_for_move) + react, _ = await self.ctx.bot.wait_for("reaction_add", timeout=30.0, check=check_for_move) except asyncio.TimeoutError: return True, None else: @@ -246,8 +246,7 @@ def is_requester_free() -> t.Callable: class TicTacToe(Cog): """TicTacToe cog contains tic-tac-toe game commands.""" - def __init__(self, bot: Bot): - self.bot = bot + def __init__(self): self.games: t.List[Game] = [] @guild_only() @@ -327,5 +326,5 @@ class TicTacToe(Cog): def setup(bot: Bot) -> None: - """Load TicTacToe Cog.""" - bot.add_cog(TicTacToe(bot)) + """Load the TicTacToe cog.""" + bot.add_cog(TicTacToe()) |