.
This commit is contained in:
parent
4d5258c89d
commit
e2b6dd667b
7
bot.py
7
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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user