diff --git a/package-lock.json b/package-lock.json index 187260bc..02a0973a 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 6520901a..1a5d65b2 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "bcrypt": "^5.0.0", "body-parser": "^1.19.0", + "dotenv": "^8.2.0", "express": "^4.17.1", "express-validator": "^6.9.2", "fosscord-server-util": "github:fosscord/fosscord-server-util", diff --git a/src/index.ts b/src/index.ts index 1ab17358..f2e5565f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,8 @@ process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error); +import { config } from "dotenv"; +config(); import { DiscordServer } from "./Server"; const server = new DiscordServer({ port: 3000 });