Botanique/src/index.ts
Anri Kennel d3cd6e1346
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
fix: could not extract stream for this track (#91)
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
2023-04-07 03:12:54 +02:00

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();
}