Forgot to add dotenv

This commit is contained in:
Christopher Cookman 2025-08-21 09:56:05 -06:00
parent 89e9feecf3
commit f7a3472564
3 changed files with 15 additions and 0 deletions

View file

@ -1,5 +1,6 @@
const express = require('express');
const Discord = require("discord.js");
require("dotenv").config();
let hook;
if (process.env.DISCORD_WEBHOOK) {hook = new Discord.WebhookClient({ url: process.env.DISCORD_WEBHOOK })}
const app = express();

13
package-lock.json generated
View file

@ -10,6 +10,7 @@
"license": "ISC",
"dependencies": {
"discord.js": "^14.22.0",
"dotenv": "^17.2.1",
"express": "^5.1.0"
}
},
@ -373,6 +374,18 @@
"url": "https://github.com/discordjs/discord.js?sponsor"
}
},
"node_modules/dotenv": {
"version": "17.2.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz",
"integrity": "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",

View file

@ -12,6 +12,7 @@
"type": "commonjs",
"dependencies": {
"discord.js": "^14.22.0",
"dotenv": "^17.2.1",
"express": "^5.1.0"
}
}