fix: change command loading procedure

This commit is contained in:
syntaxbullet
2025-12-04 14:48:40 +01:00
parent 747ee96c4e
commit f4b72b93e4
2 changed files with 2 additions and 10 deletions

View File

@@ -6,6 +6,8 @@ await KyokoClient.loadCommands();
KyokoClient.once(Events.ClientReady, async c => { KyokoClient.once(Events.ClientReady, async c => {
console.log(`Ready! Logged in as ${c.user.tag}`); console.log(`Ready! Logged in as ${c.user.tag}`);
console.log("Deploying commands...");
KyokoClient.deployCommands();
}); });
KyokoClient.on(Events.InteractionCreate, async interaction => { KyokoClient.on(Events.InteractionCreate, async interaction => {

View File

@@ -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);