Skip to content

Commit

Permalink
feat: give team members the vv role upon access to usyd
Browse files Browse the repository at this point in the history
  • Loading branch information
eluric committed Mar 15, 2024
1 parent 7006d35 commit e7085f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cogs/puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ async def submit_answer(
# 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))
team_members = await get_team_members(player.team_name)
vv_role = guild.get_role(config["VV_ROLE_ID"])

for member in team_members:
discord_member = guild.get_member(member.discord_id)
await discord_member.add_roles(vv_role)

return

Expand Down

0 comments on commit e7085f1

Please sign in to comment.