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