WIP: Add basic code for storing settings in the DB

This commit is contained in:
2025-07-04 08:02:25 -04:00
parent a1ef983cc3
commit 40bf06f288
2 changed files with 48 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import type {
SlashCommandOptionsOnlyBuilder,
} from "discord.js";
import { sql } from "./database";
import { sql, GuildSetting, initDb } from "./database";
const BLITZCRANK_BANNER = `
****++++++++++*+++
@@ -145,6 +145,9 @@ client.on(Events.InteractionCreate, async (interaction: Interaction) => {
client.once(Events.ClientReady, async (readyClient) => {
await syncCommands();
initDb(); // TODO
GuildSetting.sync(); // TODO
for (const [_name, cmd] of commands) {
await cmd?.initialize({
client: client,