fix: call initializeConfig() at startup to load config from database
Some checks failed
Deploy to Production / test (push) Failing after 26s
Some checks failed
Deploy to Production / test (push) Failing after 26s
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
import { AuroraClient } from "@/lib/BotClient";
|
import { AuroraClient } from "@/lib/BotClient";
|
||||||
import { env } from "@shared/lib/env";
|
import { env } from "@shared/lib/env";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
|
import { initializeConfig } from "@shared/lib/config";
|
||||||
|
|
||||||
import { startWebServerFromRoot } from "../web/src/server";
|
import { startWebServerFromRoot } from "../web/src/server";
|
||||||
|
|
||||||
|
// Initialize config from database
|
||||||
|
await initializeConfig();
|
||||||
|
|
||||||
// Load commands & events
|
// Load commands & events
|
||||||
await AuroraClient.loadCommands();
|
await AuroraClient.loadCommands();
|
||||||
await AuroraClient.loadEvents();
|
await AuroraClient.loadEvents();
|
||||||
|
|||||||
Reference in New Issue
Block a user