diff options
| author | 2020-04-07 14:17:35 +0300 | |
|---|---|---|
| committer | 2020-04-07 14:17:35 +0300 | |
| commit | cab121e93829258251154c0f00b1b9d8f5dca2e4 (patch) | |
| tree | 5cef6c5056959488777b64555ec120fbf6a39fd8 /bot | |
| parent | (TicTacToe): Added `get_confirmation` function to `Game` class to make sure t... (diff) | |
(TicTacToe): Created helper function `add_reactions` to `Game` class to add all number reactions to message.
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 7d82e084..24021842 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -69,6 +69,11 @@ class Game:          else:              return False, "User declined" +    async def add_reactions(self, msg: discord.Message) -> None: +        """Add number emojis to message.""" +        for nr in Emojis.number_emojis: +            await msg.add_reaction(nr) +  class TicTacToe(Cog):      """TicTacToe cog contains tic-tac-toe game commands."""  |