forked from sass/tipibot
CS2 team dividers.
This commit is contained in:
9
bot.py
9
bot.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user