From bc5a651fe683898ad7b2f7c78ac8bc9206220d20 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Tue, 1 Jul 2025 15:57:49 +0200 Subject: [PATCH] test --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e89e397..df6ca73 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const update = require('./displayer.js'); const clean = require('./cleaner.js'); const { Client, GatewayIntentBits, Collection, Events } = require('discord.js'); -const client = new Client({ intents: [GatewayIntentBits.GuildMembers,GatewayIntentBits.GuildMessages,GatewayIntentBits.GuildMessageReactions,GatewayIntentBits.MessageContent] }); +const client = new Client({ intents: [GatewayIntentBits.GuildMembers,GatewayIntentBits.GuildMessages,GatewayIntentBits.GuildMessageReactions,GatewayIntentBits.DirectMessageReactions,GatewayIntentBits.MessageContent] }); const args = process.argv; const token = args[2].toString(); const pterodactyl = args[3].toString(); @@ -79,7 +79,7 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => { console.log('Utilisateur:', user.username); console.log('Bot?:', user.bot); console.log('======================'); - + if (user.bot) return; if (reaction.emoji.name !== '❓') return;