client.on('messageCreate', message => { if (message.author.id === client.user.id) return; if (message.author.bot) return; var findChannel = message.guild.channels.cache.find(ch => ch.name === "temp-channel"); if(message.channel === findChannel) { if(message.attachments.size > 0) { var playerPoints = db.get(`${message.author.id}_points`); if (!playerPoints) { db.set(`${message.author.id}_points`, 1); } else { db.add(`${message.author.id}_points`, 1); } message.reply(`**+1 Game Point**, you now have **${db.get(`${message.author.id}_points`)}** points`) } } })En su mayor parte, funciona. Pero el problema es que cuando se envía un mensaje con una imagen, responde repetidamente al autor del mensaje sin parar. ¿Qué he hecho mal aquí?
He estado en discord.js v12 durante años, pero v13 cambió demasiado.
He intentado varias formas de evitar que el bot responda repetidamente al autor, pero no funciona.