diff --git a/commands/Fun/findwords.js b/commands/Fun/findwords.js index 5f3b54f3..0e18a788 100644 --- a/commands/Fun/findwords.js +++ b/commands/Fun/findwords.js @@ -65,16 +65,11 @@ class FindWords extends Command { }); collector.on("collect", (msg) => { - if (!participants.includes(msg.author.id)) { - participants.push(msg.author.id); - }; + if (this.client.functions.getPrefix(msg, data)) return; + if (!participants.includes(msg.author.id)) participants.push(msg.author.id); if (msg.content.toLowerCase().indexOf(word) >= 0 && wordList.map((word) => word.toLowerCase()).indexOf(msg.content.toLowerCase()) >= 0) { collector.stop(msg.author.id); // Stop the collector - } else { - msg.error("fun/findwords:INVALID_WORD", { - member: msg.author.toString() - }); - }; + } else msg.error("fun/findwords:INVALID_WORD", { member: msg.author.toString() }); }); collector.on("end", async (collected, reason) => { diff --git a/commands/Fun/number.js b/commands/Fun/number.js index 220a8263..2dd48ba5 100644 --- a/commands/Fun/number.js +++ b/commands/Fun/number.js @@ -36,8 +36,8 @@ class Number extends Command { currentGames[message.guild.id] = true; collector.on("collect", async msg => { + if (this.client.functions.getPrefix(msg, data)) return; if (!participants.includes(msg.author.id)) participants.push(msg.author.id); - if (isNaN(msg.content)) return; const parsedNumber = parseInt(msg.content, 10);