feat: introduce web dashboard with multi-bot management

- add Discord OAuth2 authentication
- allow users to register their bots via token
- implement dynamic bot start/stop system
- store bots in database (multi-tenant)
- replace single-bot env setup with scalable architecture
This commit is contained in:
Puechberty Arthur
2026-04-18 01:39:12 +02:00
parent 58376568c7
commit 3063796eb0
150 changed files with 6248 additions and 1387 deletions
+22
View File
@@ -0,0 +1,22 @@
import { copyFileSync, existsSync, mkdirSync, readdirSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
const BOT_DIR = path.resolve(SCRIPT_DIR, "..");
const SOURCE_DIR = path.join(BOT_DIR, "src", "legacy", "i18n");
const TARGET_DIR = path.join(BOT_DIR, "dist", "legacy", "i18n");
if (!existsSync(SOURCE_DIR)) {
throw new Error(`[i18n] source locale directory not found: ${SOURCE_DIR}`);
}
mkdirSync(TARGET_DIR, { recursive: true });
for (const fileName of readdirSync(SOURCE_DIR)) {
if (!fileName.endsWith(".json")) {
continue;
}
copyFileSync(path.join(SOURCE_DIR, fileName), path.join(TARGET_DIR, fileName));
}