From f4b72b93e4f068f9b42c2fef8b1def4fc0180a99 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Thu, 4 Dec 2025 14:48:40 +0100 Subject: [PATCH] fix: change command loading procedure --- app/src/index.ts | 2 ++ app/src/scripts/deploy.ts | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 app/src/scripts/deploy.ts diff --git a/app/src/index.ts b/app/src/index.ts index 677fa91..19195a1 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -6,6 +6,8 @@ await KyokoClient.loadCommands(); KyokoClient.once(Events.ClientReady, async c => { console.log(`Ready! Logged in as ${c.user.tag}`); + console.log("Deploying commands..."); + KyokoClient.deployCommands(); }); KyokoClient.on(Events.InteractionCreate, async interaction => { diff --git a/app/src/scripts/deploy.ts b/app/src/scripts/deploy.ts deleted file mode 100644 index 66f43b7..0000000 --- a/app/src/scripts/deploy.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { KyokoClient } from "@lib/KyokoClient"; - -console.log("Loading commands..."); -await KyokoClient.loadCommands(); - -console.log("Deploying commands..."); -await KyokoClient.deployCommands(); - -console.log("Done!"); -process.exit(0);