From c4a52536d90a63d290f165f23f61f191c943292f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 14 Dec 2017 15:40:34 +0000 Subject: [PATCH] Fix --- commands/games/google-feud.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/games/google-feud.js b/commands/games/google-feud.js index eca97b9c..7617b5bc 100644 --- a/commands/games/google-feud.js +++ b/commands/games/google-feud.js @@ -23,14 +23,14 @@ module.exports = class GoogleFeudCommand extends Command { const suggestions = await this.fetchSuggestions(question); const display = new Array(suggestions.length).fill('???'); let fails = 0; - while (display.includes('???') && fails < 3) { + while (display.includes('???') && fails !== 3) { const embed = new MessageEmbed() .setColor(0x005AF0) .setTitle(`${question}...?`) .setDescription('Type the choice you think is a suggestion _without_ the question.') .setFooter(`${3 - fails} tries remaining!`); - for (let i = 0; i < suggestions.length; i++) embed.addField(`❯ ${10000 - (i * 1000) || 500}`, display[i]); - embed.addBlankField(); + for (let i = 0; i < suggestions.length; i++) embed.addField(`❯ ${10000 - (i * 1000) || 500}`, display[i], true); + embed.addBlankField(true); await msg.embed(embed); const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, { max: 1, @@ -50,7 +50,7 @@ module.exports = class GoogleFeudCommand extends Command { } } this.playing.delete(msg.channel.id); - if (fails > 3) return msg.say('Better luck next time!'); + if (fails === 3) return msg.say('Better luck next time!'); return msg.say('You win! Nice job, master of Google!'); } catch (err) { this.playing.delete(msg.channel.id);