load .env file

This commit is contained in:
Flam3rboy 2021-02-16 13:30:54 +01:00
parent 3ea1dff220
commit 6030b86121
3 changed files with 3 additions and 0 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^8.2.0",
"erlpack": "^0.1.3",
"fosscord-server-util": "github:fosscord/fosscord-server-util",
"jsonwebtoken": "^8.5.1",

View File

@ -3,6 +3,8 @@ process.on("unhandledRejection", console.error);
setTimeout(() => {}, 100000000);
import { Server } from "./Server";
import { config } from "dotenv";
config();
const server = new Server();
server.listen();