mirror of
https://github.com/arthur-pbty/LazyBot.git
synced 2026-06-19 13:46:42 +02:00
finish organization event/command & add guild command in folder commands
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user