Refactor command registration to support guild-specific commands

- Updated the command registration process to allow for instant synchronization of guild commands, while maintaining global command registration.
- Introduced optional BOT_GUILD_ID environment variable for guild-specific command handling.
- Enhanced logging to differentiate between guild and global command registrations, improving traceability.
This commit is contained in:
smueller
2026-07-22 12:57:25 +02:00
parent 58623bd1d3
commit f2f856628d
2 changed files with 30 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ const EnvSchema = z.object({
NODE_ENV: z.enum(['development', 'test', 'production']).default('development'),
BOT_TOKEN: z.string().min(1),
BOT_CLIENT_ID: z.string().min(1),
BOT_GUILD_ID: z.string().min(1).optional(),
DATABASE_URL: z.string().url(),
REDIS_URL: z.string().url(),
LOG_LEVEL: z.string().default('info'),