Anri Kennel
d3cd6e1346
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
Resolve https://github.com/Androz2091/discord-player/issues/1705 - Update deps - Load env file BEFORE importing depedencies - Now force the usage of play-dl Co-authored-by: Mylloon <kennel.anri@tutanota.com> Reviewed-on: #91
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
/** Load the app. */
|
|
const start_app = () => {
|
|
import("./load").then((l) => l.run().catch((error) => console.error(error)));
|
|
};
|
|
|
|
// Load .env if not in prod
|
|
if (process.env.NODE_ENV !== "production") {
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
import("dotenv").then((c) => {
|
|
c.config({ path: "./config/.env" });
|
|
|
|
start_app();
|
|
});
|
|
} else {
|
|
start_app();
|
|
}
|