Skip to content

Commit

Permalink
Fixing team restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey committed Jan 2, 2025
1 parent 7e5cff6 commit 84118ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/iterate_prc_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ async def check_team_restrictions(bot, settings, guild_id, players):
min_count_for_compute = team_restrictions.get("min_players", 0)
if min_count_for_compute >= len(players):
return

enabled = team_restrictions.get("enabled", True)
if not enabled:
return

guild = bot.get_guild(guild_id) or await bot.fetch_guild(guild_id)
all_roles = await guild.fetch_roles()
Expand Down

0 comments on commit 84118ba

Please sign in to comment.