Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: exit script if env vars not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Aug 29, 2023
1 parent e44e0b2 commit 3754640
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/deploySlashCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_BOT_TOKEN)
logger.error(
'Missing required environment variables for deployment.\nPlease provide valid DISCORD_APPLICATION_ID and DISCORD_BOT_TOKEN in .env file.'
);
process.exit(1);
}

for (const folder of commandFolders) {
Expand Down

0 comments on commit 3754640

Please sign in to comment.