fix: change command loading procedure
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
@@ -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);
|
|
||||||
Reference in New Issue
Block a user