Skip to content

Commit

Permalink
feat: add in code as part of an exec's puzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
eluric committed Mar 13, 2024
1 parent 8d8e840 commit ce13118
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cogs/puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ async def submit_answer(
await interaction.followup.send(
"The submitted answer is... CORRECT! You've completed all the UTS puzzles and can now see the USYD puzzles."
)

# the following is part of an exec's puzzle
guild = interaction.guild
team = await get_team(player.team_name)
antipuzzler = guild.get_member(config["ANTIPUZZLER_ID"])
await antipuzzler.add_roles(guild.get_role(team.team_role_id))

return

elif puzzle_id == "USYD-M":
Expand Down
1 change: 1 addition & 0 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
"HUNT_START_TIME": datetime(
2024, 3, 16, 9, 15, tzinfo=ZoneInfo("Australia/Sydney")
),
"ANTIPUZZLER_ID": 1212404432252313641,
}

0 comments on commit ce13118

Please sign in to comment.