Refactor architecture: improve env loading and command workflow
This commit is contained in:
14
app/src/scripts/deploy.ts
Normal file
14
app/src/scripts/deploy.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { KyokoClient } from "@lib/KyokoClient";
|
||||
|
||||
console.log("🚀 Starting deployment script...");
|
||||
|
||||
// Load all commands first
|
||||
await KyokoClient.loadCommands();
|
||||
|
||||
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