refactor(tasks/cleanup): only print message when necessary

This commit is contained in:
2026-02-24 22:14:37 -05:00
parent 8ed9d05a67
commit 914a5df812

View File

@@ -19,7 +19,8 @@ async def cleanup():
targets.append(guild_id)
for target in targets:
del players[target]
debug(f"cleanup thread removed {len(targets)} empty players")
if len(targets):
debug(f"cleanup thread removed {len(targets)} empty players")
if (
not idle_tracker["is_idle"]