swapped to a new db locally hosted

This commit is contained in:
2025-10-06 00:25:29 -04:00
parent 097583ca0a
commit ca23c0ab8c
40 changed files with 2244 additions and 556 deletions

View File

@@ -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!');
},
};