added react app

This commit is contained in:
2026-01-08 17:15:28 +05:30
parent 66af870aa9
commit e6f94c3e71
50 changed files with 1260 additions and 1374 deletions

View File

@@ -1,14 +1,15 @@
import { AuroraClient } from "@/lib/BotClient";
import { env } from "@lib/env";
import { WebServer } from "@/web/server";
import { webServer } from "./web/src";
// Load commands & events
await AuroraClient.loadCommands();
await AuroraClient.loadEvents();
await AuroraClient.deployCommands();
WebServer.start();
webServer.start();
console.log("Web server is running on http://localhost:3000")
// login with the token from .env
if (!env.DISCORD_BOT_TOKEN) {
@@ -18,7 +19,7 @@ AuroraClient.login(env.DISCORD_BOT_TOKEN);
// Handle graceful shutdown
const shutdownHandler = () => {
WebServer.stop();
webServer.stop();
AuroraClient.shutdown();
};