load .env file

This commit is contained in:
Flam3rboy 2021-02-16 13:30:53 +01:00
parent 4a815d302a
commit b70adcedba
3 changed files with 3 additions and 0 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -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",

View File

@ -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 });