Skip to content

Commit 84e1b3c

Browse files
committed
tmp2
1 parent 7702485 commit 84e1b3c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373

7474
EMOJI_ZEUS = "ZEUS"
7575

76+
EMOJI_SIGNOFF = "\N{CROSS MARK}"
77+
7678
# If a user signs off from a role listed in SIGNOFF_NOTIFY_ROLES when
7779
# there is less than SIGNOFF_NOTIFY_TIME left until the operation start,
7880
# a user defined in secrets.py gets notified about that.

container.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ async def updateReactions(self, message: Message = None, bot=None):
8383
"`bot` argument to be provided")
8484

8585
reactions: List[Emoji] = self.event.getReactions()
86+
reactionEmojisIntended = [cfg.EMOJI_SIGNOFF] + reactions
8687
reactionsCurrent = message.reactions
8788
reactionEmojisCurrent = {}
8889
reactionsToRemove = []

eventListener.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ async def on_raw_reaction_add(self, payload: RawReactionActionEvent):
7373
else:
7474
emoji = payload.emoji.name
7575

76+
print("emoji", emoji)
77+
print(emoji == cfg.EMOJI_SIGNOFF)
7678
# Find signup of user
7779
signup: Role = event.findSignupRole(user.id)
7880

0 commit comments

Comments
 (0)