aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py3
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