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:
1 parent
c8fb7976b0
commit
76dbdb1f0a
1 file changed
+1
-1
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user