mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
Add debug logs
This commit is contained in:
+3
-2
@@ -2,7 +2,7 @@ import dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const { DISCORD_TOKEN, DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET, DISCORD_GUILD_ID, RELEASE_SECRET, LINK_SECRET, E621_BASE_URL, E926_BASE_URL, REDIS_URL, PORT } = process.env;
|
||||
const { DISCORD_TOKEN, DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET, DISCORD_GUILD_ID, RELEASE_SECRET, LINK_SECRET, E621_BASE_URL, E926_BASE_URL, REDIS_URL, PORT, DEBUG } = process.env;
|
||||
|
||||
export const config = {
|
||||
DISCORD_TOKEN,
|
||||
@@ -15,7 +15,8 @@ export const config = {
|
||||
E926_BASE_URL,
|
||||
PORT: parseInt(PORT as string),
|
||||
REDIS_URL,
|
||||
DEV_MODE: process.env.npm_lifecycle_event == 'dev'
|
||||
DEV_MODE: process.env.npm_lifecycle_event == 'dev',
|
||||
DEBUG: DEBUG == 'true'
|
||||
};
|
||||
|
||||
for (const [key, val] of Object.entries(config)) {
|
||||
|
||||
Reference in New Issue
Block a user