From 055bb60d22f2d7f6924d3fd469d7b26d029ba660 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Sep 2024 13:04:11 +0200 Subject: [PATCH] comments --- src/bot.ts | 2 +- src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index fbfd0c0..b62e76c 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1,4 +1,4 @@ -/** Load the app. */ +/** Load the app */ const start_app = () => { import("./load").then((l) => l.run().catch((error) => console.error(error))); }; diff --git a/src/index.ts b/src/index.ts index dd53b69..7c5aeaf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ const start_manager = () => { manager.spawn(); }; +// Load .env if not in prod if (process.env.NODE_ENV !== "production") { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore