From 0a5dadb610e108c492d4ce5919b5ac6f6d960be5 Mon Sep 17 00:00:00 2001 From: Adam Iannazzone <46025473+jiannazzone@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:43:08 -0500 Subject: [PATCH] Add dotenv configuration to multiple files for environment variable management --- package.json | 3 +++ src/deploy-commands.js | 2 ++ src/index.js | 2 ++ src/setup-oauth.js | 2 ++ 4 files changed, 9 insertions(+) diff --git a/package.json b/package.json index a14db27..41e12c9 100644 --- a/package.json +++ b/package.json @@ -10,5 +10,8 @@ }, "dependencies": { "discord.js": "^14.16.3" + }, + "overrides": { + "undici": "^6.23.0" } } diff --git a/src/deploy-commands.js b/src/deploy-commands.js index d70d559..194e400 100644 --- a/src/deploy-commands.js +++ b/src/deploy-commands.js @@ -1,3 +1,5 @@ +require('dotenv').config(); + const { REST, Routes } = require('discord.js'); const { command } = require('./commands/claim-donation'); diff --git a/src/index.js b/src/index.js index 5e2a770..1be0fe8 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ +require('dotenv').config(); + const { Client, GatewayIntentBits, Events } = require('discord.js'); const { handleCommand, handleModal, MODAL_ID } = require('./commands/claim-donation'); const { getAccessToken, TOKEN_PATH } = require('./services/token-store'); diff --git a/src/setup-oauth.js b/src/setup-oauth.js index 0dc94bd..3d331f2 100644 --- a/src/setup-oauth.js +++ b/src/setup-oauth.js @@ -1,3 +1,5 @@ +require('dotenv').config(); + const http = require('node:http'); const crypto = require('node:crypto'); const { execSync } = require('node:child_process');