read BOT_CONFIG_MODE instead of CONFIG_MODE when syncing commands

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-10-23 21:30:18 +02:00
1 parent c8fb7976b0
commit 76dbdb1f0a
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ class Bot(commands.Bot):
await bot.load_extension(f"cogs.{name}")
# Sync slash commands
if os.environ.get("CONFIG_MODE") == "prod":
if os.environ.get("BOT_CONFIG_MODE") == "prod":
await self.tree.sync()
else:
self.tree.copy_global_to(guild=discord.Object(id=self.guild_id))