finish organization event/command & add guild command in folder commands

This commit is contained in:
Arthur Puechberty
2026-01-17 17:23:49 +01:00
parent d5f0f4c30b
commit 6c9241f349
12 changed files with 654 additions and 599 deletions
+11
View File
@@ -0,0 +1,11 @@
const { Events, ActivityType } = require("discord.js");
const loadSlashCommands = require('../slash_commands.js');
module.exports = {
name: Events.ClientReady,
async execute(client) {
console.log(`[READY] ${client.user.tag} est prêt | ${client.guilds.cache.size} serveurs | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} utilisateurs`);
await loadSlashCommands(client);
client.user.setActivity("LazyBot à votre service !", { type: ActivityType.Custom });
}
};