swapped to a new db locally hosted
This commit is contained in:
@@ -5,11 +5,15 @@ module.exports = {
|
||||
name: 'clientReady',
|
||||
once: true,
|
||||
async execute(client) {
|
||||
console.log('ECS - Full Stack Bot Online!');
|
||||
|
||||
const guilds = client.guilds.cache.map(guild => guild.id);
|
||||
for (const guildId of guilds) {
|
||||
await deployCommands(guildId);
|
||||
const guildIds = client.guilds.cache.map(guild => guild.id);
|
||||
if (guildIds.length > 0) {
|
||||
// Deploy commands for all guilds in parallel, but only log a single summary
|
||||
try {
|
||||
await Promise.all(guildIds.map(id => deployCommands(id)));
|
||||
console.log(`🔁 Refreshed application commands for ${guildIds.length} guild(s)`);
|
||||
} catch (e) {
|
||||
console.error('Error refreshing application commands:', e && e.message ? e.message : e);
|
||||
}
|
||||
}
|
||||
|
||||
const activities = [
|
||||
@@ -26,5 +30,8 @@ module.exports = {
|
||||
client.user.setActivity(activity.name, { type: activity.type, url: activity.url });
|
||||
activityIndex = (activityIndex + 1) % activities.length;
|
||||
}, 3000);
|
||||
|
||||
// Signal that startup is complete
|
||||
console.log('✅ ECS - Full Stack Bot Online!');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user