mirror of
https://github.com/arthur-pbty/LazyBot.git
synced 2026-06-03 23:36:37 +02:00
11 lines
508 B
JavaScript
11 lines
508 B
JavaScript
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 });
|
|
}
|
|
}; |