This commit is contained in:
Louis Mazin 2025-07-01 15:59:53 +02:00
parent 33ae51bab6
commit b49eb11914

View File

@ -41,7 +41,7 @@ for (const folder of commandFolders) {
}
}
client.on('ready', () => {
client.once('ready', () => {
client.user.setPresence({ activities: [{ name: 'Rygain', type: 'WATCHING' }], status: 'online' });
console.log('Bot started !');
deploy(token);
@ -94,6 +94,7 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
});
client.on(Events.InteractionCreate, async interaction => {
console.log(interaction);
if (!interaction.isChatInputCommand()) return;
const command = interaction.client.commands.get(interaction.commandName);