From b70adcedbac92a108924a1a29929d17a01903fb9 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 16 Feb 2021 13:30:53 +0100 Subject: :sparkles: load .env file --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 }); -- cgit 1.5.1