refactor: remove useless debug checks

Debug messages shouldn't be printed in the first place if debug isn't on.
This commit is contained in:
Ryan 2025-02-13 16:31:41 -05:00
parent 5610fc7acd
commit 22249ecf7a
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 4 additions and 6 deletions

View File

@ -71,10 +71,9 @@ async def on_message(message, edited=False):
rreload(reloaded_modules, module)
end = time.time()
if __debug__:
debug(
f"reloaded {len(reloaded_modules)} modules in {round(end - start, 2)}s"
)
debug(
f"reloaded {len(reloaded_modules)} modules in {round(end - start, 2)}s"
)
await utils.add_check_reaction(message)

View File

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