aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Scragly <[email protected]>2019-04-21 21:49:00 +1000
committerGravatar Scragly <[email protected]>2019-04-21 21:49:00 +1000
commit9629cd0347cd2cd52fcf42a99dad505d41bde8a8 (patch)
treebc0429f057564fdb80f0ffcdc140598898a0782e /bot
parentAccount for leaderboard being invoked before scores exist. (diff)
Ignore the punished.
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/easter/egg_hunt/cog.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/seasons/easter/egg_hunt/cog.py b/bot/seasons/easter/egg_hunt/cog.py
index 68cac717..704c3173 100644
--- a/bot/seasons/easter/egg_hunt/cog.py
+++ b/bot/seasons/easter/egg_hunt/cog.py
@@ -26,6 +26,8 @@ TEAM_MAP = {
GUILD = bot.get_guild(Client.guild)
+MUTED = GUILD.get_role(MainRoles.muted)
+
def get_team_role(user: discord.Member) -> discord.Role:
"""Helper function to get the team role for a member."""
@@ -160,6 +162,11 @@ class EggMessage:
return False
if reaction.emoji != self.egg:
return False
+
+ # ignore the pushished
+ if MUTED in user.roles:
+ return False
+
return True
async def collect_reacts(self, reaction: discord.Reaction, user: discord.Member):