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);