diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index 00a68a8..ff55cd8 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -1,5 +1,6 @@ const { Listener } = require('discord-akairo'); const fs = require('fs'); +let messageID = []; // Where reaction.message.id that entered a board will be stocked so it doesn't enter again class MessageReactionAddListener extends Listener { @@ -12,9 +13,8 @@ class MessageReactionAddListener extends Listener { async exec(reaction, user) { if (reaction.message.author == user) return; - let messageID = []; // Where reaction.message.id that entered a board will be stocked so it doesn't enter again let starboardChannel, shameboardChannel; - + if (messageID.includes(reaction.message.id)) return; // Starboard