mirror of
https://github.com/RetroDECK/RetroDECK-Discord-Bot.git
synced 2026-04-21 12:06:40 +00:00
Add dotenv configuration to multiple files for environment variable management
This commit is contained in:
parent
cfc6084602
commit
0a5dadb610
|
|
@ -10,5 +10,8 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord.js": "^14.16.3"
|
"discord.js": "^14.16.3"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"undici": "^6.23.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
const { REST, Routes } = require('discord.js');
|
const { REST, Routes } = require('discord.js');
|
||||||
const { command } = require('./commands/claim-donation');
|
const { command } = require('./commands/claim-donation');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
const { Client, GatewayIntentBits, Events } = require('discord.js');
|
const { Client, GatewayIntentBits, Events } = require('discord.js');
|
||||||
const { handleCommand, handleModal, MODAL_ID } = require('./commands/claim-donation');
|
const { handleCommand, handleModal, MODAL_ID } = require('./commands/claim-donation');
|
||||||
const { getAccessToken, TOKEN_PATH } = require('./services/token-store');
|
const { getAccessToken, TOKEN_PATH } = require('./services/token-store');
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
const http = require('node:http');
|
const http = require('node:http');
|
||||||
const crypto = require('node:crypto');
|
const crypto = require('node:crypto');
|
||||||
const { execSync } = require('node:child_process');
|
const { execSync } = require('node:child_process');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue