CS2 team dividers.
All checks were successful
Test & Deploy / test (push) Successful in 7s
Test & Deploy / deploy (push) Successful in 7s

This commit is contained in:
Rene Arumetsa
2026-09-03 21:36:41 +03:00
parent a4645e19c5
commit deab0f7a55
10 changed files with 422 additions and 14 deletions

9
bot.py
View File

@@ -359,11 +359,14 @@ async def team_sync_hourly():
log.warning("team_sync_hourly: guild %s not found", config.GUILD_ID)
return
summary = await sync_all_team_roles(guild, log)
if summary.assigned or summary.removed or summary.created:
if summary.assigned or summary.removed or summary.created or summary.positioned or summary.errors:
log.info(
"team_sync_hourly: assigned=%d, removed=%d, created=%d, errors=%d",
summary.assigned, summary.removed, len(summary.created), len(summary.errors),
"team_sync_hourly: assigned=%d, removed=%d, created=%d, positioned=%d, errors=%d",
summary.assigned, summary.removed, len(summary.created),
summary.positioned, len(summary.errors),
)
for err in summary.errors:
log.warning("team_sync_hourly: %s", err)
@team_sync_hourly.before_loop