From e2b6dd667b6c4c1ef03c255478827860e09b4ecc Mon Sep 17 00:00:00 2001 From: Franz Rolfsvaag Date: Sun, 10 Aug 2025 21:13:26 +0200 Subject: [PATCH] . --- bot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.py b/bot.py index 127bb1a..db5e13d 100644 --- a/bot.py +++ b/bot.py @@ -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])