Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ REGULAR_ROLE_ID=1383170370634514544
GUIDES_TRACKER_PATH=/app/data/guides-tracker.json
ADVENT_OF_CODE_TRACKER_PATH=/app/data/advent-of-code-tracker.json

CLEAR_GLOBAL_COMMANDS=true

# Note: DISCORD_TOKEN & CLIENT_ID should be in .env.local (not committed)
1 change: 0 additions & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const config = {
},
serverId: requireEnv('SERVER_ID'),
fetchAndSyncMessages: true,
clearGlobalCommands: optionalEnv('CLEAR_GLOBAL_COMMANDS') === 'true',
guidesTrackerPath: optionalEnv('GUIDES_TRACKER_PATH'),
adventOfCodeTrackerPath: requireEnv('ADVENT_OF_CODE_TRACKER_PATH'),
roleIds: {
Expand Down
6 changes: 0 additions & 6 deletions src/util/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ export async function deployCommands(): Promise<RESTPutAPIApplicationCommandsRes

const rest = new REST({ version: '10' }).setToken(config.discord.token);

if (config.clearGlobalCommands) {
console.log('Clearing global commands...');
await rest.put(Routes.applicationCommands(config.discord.clientId), { body: [] });
console.log('Global commands cleared.');
}

const result = (await rest.put(
Routes.applicationGuildCommands(config.discord.clientId, config.serverId),
{
Expand Down