chore: make docker

This commit is contained in:
eric
2026-03-22 02:35:10 +01:00
parent 49857e620e
commit 74042182ed
11 changed files with 371 additions and 6 deletions

View File

@@ -23,6 +23,7 @@ import type { FSWatcher } from "fs";
const logger = createLogger("Main");
let webCssWatcher: FSWatcher | null = null;
const isProduction = Bun.env.NODE_ENV === "production";
// Create the Discord client with required intents
const client = new BotClient({
@@ -53,7 +54,9 @@ async function main(): Promise<void> {
// Start web server after bot is logged in
await buildWebCss();
webCssWatcher = startWebCssWatcher();
if (!isProduction) {
webCssWatcher = startWebCssWatcher();
}
await startWebServer(client);
} catch (error) {
logger.error("Failed to start bot", error);