diff options
| author | 2020-09-24 20:14:09 +0300 | |
|---|---|---|
| committer | 2020-09-24 20:14:09 +0300 | |
| commit | 88c5270cebb56c1cf84ea0a2bfb78cca6bf2252a (patch) | |
| tree | 1c7d80c25b6a1adbaa5daa68f7cbd3cf9fa689c3 /bot | |
| parent | Tictactoe: Remove duplicate functions (diff) | |
Tictactoe: Document another check
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 26df4e10..1bd20b70 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -49,6 +49,9 @@ class Player: Return is timeout reached and position of field what user will fill when timeout don't reach. """ def check_for_move(r: discord.Reaction, u: discord.User) -> bool: + """ + Check does user who reacted is user who we want, message is board message and emoji is in board values. + """ return ( u.id == self.user.id and msg.id == r.message.id |