diff options
author | 2020-04-09 13:36:01 +0300 | |
---|---|---|
committer | 2020-04-09 13:36:01 +0300 | |
commit | b4fa0b421b7949f0aea37e1eede68c0ba2432918 (patch) | |
tree | b208c2a0e3f4491dc24e3faf9c2c2007e044da86 /bot/exts/evergreen/tic_tac_toe.py | |
parent | (TicTacToe): Removed unnecessary variable creation in `Game.send_board`. (diff) |
(TicTacToe): Created function `Game.play`.
Diffstat (limited to 'bot/exts/evergreen/tic_tac_toe.py')
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index ea503e83..260c8c2f 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -91,6 +91,12 @@ class Game: msg += "\n" return await self.ctx.send(msg) + async def play(self) -> None: + """Start and handle game.""" + await self.ctx.send("It's time for game! Let's begin.") + board = await self.send_board() + await self.add_reactions(board) + def is_channel_free() -> t.Callable: """Check is channel where command will be invoked free.""" |