This commit is contained in:
Franz Rolfsvaag 2025-08-10 21:13:26 +02:00
parent 4d5258c89d
commit e2b6dd667b

7
bot.py
View File

@ -98,6 +98,13 @@ async def on_ready():
env_cfg = cfg_helper(bot)
# DEBUG: show what cfg resolves
for k in ("mod_channel_id", "modlog_channel_id", "pirates_list_channel_id"):
try:
print(f"[DEBUG cfg] {k}: str={env_cfg.get(k)} int={env_cfg.int(k, 0)}")
except Exception as e:
print(f"[DEBUG cfg] {k}: error={e!r}")
# Per-guild permission sanity checks (env-aware)
await asyncio.gather(*[_guild_selfcheck(g, env_cfg) for g in bot.guilds])