From b49eb11914730077b1a6d4e84d033d4ef05d3d38 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Tue, 1 Jul 2025 15:59:53 +0200 Subject: [PATCH] test --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index df8c32a..d87eb71 100644 --- a/index.js +++ b/index.js @@ -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);