aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2021-11-29 09:34:31 +0000
committerGravatar Izan <[email protected]>2021-11-29 09:34:31 +0000
commita958d1c1f6a3308b5ffd03cb7f9ef846b0871265 (patch)
tree80066f53a7a2a09aa2cc9db542de94b5a8c5ffde
parentMerge branch 'main' into update-role-constants (diff)
Revert change to if statement checking if staff in `.aoc join`
-rw-r--r--bot/exts/events/advent_of_code/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py
index c3073fd5..34ade5b1 100644
--- a/bot/exts/events/advent_of_code/_cog.py
+++ b/bot/exts/events/advent_of_code/_cog.py
@@ -148,7 +148,7 @@ class AdventOfCode(commands.Cog):
author = ctx.author
log.info(f"{author.name} ({author.id}) has requested a PyDis AoC leaderboard code")
- if AocConfig.staff_leaderboard_id and any(r.id in STAFF_ROLES for r in author.roles):
+ if AocConfig.staff_leaderboard_id and any(r.id == Roles.helpers for r in author.roles):
join_code = AocConfig.leaderboards[AocConfig.staff_leaderboard_id].join_code
else:
try: