refactor: remove deploy script and integrate command deployment into the reload command
This commit is contained in:
@@ -17,6 +17,9 @@ export const reload = createCommand({
|
|||||||
.setDescription(`Successfully reloaded ${KyokoClient.commands.size} commands.`)
|
.setDescription(`Successfully reloaded ${KyokoClient.commands.size} commands.`)
|
||||||
.setColor("Green");
|
.setColor("Green");
|
||||||
|
|
||||||
|
// Deploy commands
|
||||||
|
await KyokoClient.deployCommands();
|
||||||
|
|
||||||
await interaction.editReply({ embeds: [embed] });
|
await interaction.editReply({ embeds: [embed] });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
import { KyokoClient } from "@lib/KyokoClient";
|
|
||||||
|
|
||||||
console.log("🚀 Starting deployment script...");
|
|
||||||
|
|
||||||
// Load all commands first
|
|
||||||
await KyokoClient.loadCommands(false);
|
|
||||||
|
|
||||||
console.log(`📦 Loaded ${KyokoClient.commands.size} commands.`);
|
|
||||||
|
|
||||||
// Deploy
|
|
||||||
await KyokoClient.deployCommands();
|
|
||||||
|
|
||||||
|
|
||||||
console.log("👋 Deployment script finished.");
|
|
||||||
process.exit(0);
|
|
||||||
Reference in New Issue
Block a user