From 56d16f8a289c0cbe3e82be9e9b0973f78c826c9e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 4 Feb 2020 18:09:09 -0500 Subject: [PATCH] Fix --- commands/sp-games/mad-libs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/sp-games/mad-libs.js b/commands/sp-games/mad-libs.js index 902d2b50..1a435838 100644 --- a/commands/sp-games/mad-libs.js +++ b/commands/sp-games/mad-libs.js @@ -33,11 +33,12 @@ module.exports = class MadLibsCommand extends Command { for (const word of lib.needed) { await msg.reply(`Give me a **${word}**.`); const filter = res => { + if (res.author.id !== msg.author.id) return false; if (!res.content || res.content.length > 12) { msg.reply('Please only use a maximum of 12 characters per word.').catch(() => null); return false; } - return res.author.id === msg.author.id; + return true; } const choice = await msg.channel.awaitMessages(filter, { max: 1,