From 570cdc69c1a8141721d205ca85a74a476005b218 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Thu, 12 Feb 2026 16:59:54 +0100 Subject: [PATCH] fix: call initializeConfig() at startup to load config from database --- bot/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot/index.ts b/bot/index.ts index f7b149b..f9be0b9 100644 --- a/bot/index.ts +++ b/bot/index.ts @@ -1,9 +1,13 @@ import { AuroraClient } from "@/lib/BotClient"; import { env } from "@shared/lib/env"; import { join } from "node:path"; +import { initializeConfig } from "@shared/lib/config"; import { startWebServerFromRoot } from "../web/src/server"; +// Initialize config from database +await initializeConfig(); + // Load commands & events await AuroraClient.loadCommands(); await AuroraClient.loadEvents();