aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-09 13:36:01 +0300
committerGravatar ks129 <[email protected]>2020-04-09 13:36:01 +0300
commitb4fa0b421b7949f0aea37e1eede68c0ba2432918 (patch)
treeb208c2a0e3f4491dc24e3faf9c2c2007e044da86
parent(TicTacToe): Removed unnecessary variable creation in `Game.send_board`. (diff)
(TicTacToe): Created function `Game.play`.
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py6
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."""