This commit is contained in:
Louis Mazin 2025-07-01 15:57:49 +02:00
parent d294004b56
commit bc5a651fe6

View File

@ -6,7 +6,7 @@ const update = require('./displayer.js');
const clean = require('./cleaner.js'); const clean = require('./cleaner.js');
const { Client, GatewayIntentBits, Collection, Events } = require('discord.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 args = process.argv;
const token = args[2].toString(); const token = args[2].toString();
const pterodactyl = args[3].toString(); const pterodactyl = args[3].toString();
@ -79,7 +79,7 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
console.log('Utilisateur:', user.username); console.log('Utilisateur:', user.username);
console.log('Bot?:', user.bot); console.log('Bot?:', user.bot);
console.log('======================'); console.log('======================');
if (user.bot) return; if (user.bot) return;
if (reaction.emoji.name !== '❓') return; if (reaction.emoji.name !== '❓') return;