refactor: remove deploy script and integrate command deployment into the reload command

This commit is contained in:
syntaxbullet
2025-12-05 12:46:25 +01:00
parent 1a5503a3a6
commit 1cc2759511
2 changed files with 3 additions and 15 deletions

View File

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

View File

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