From 5a0df98b9a99b2411c3c3ffca75c983bfca5254f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 14 Jun 2017 01:53:10 +0000 Subject: [PATCH] Wow --- commands/games/hangman.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/games/hangman.js b/commands/games/hangman.js index 99914e1a..6738bd90 100644 --- a/commands/games/hangman.js +++ b/commands/games/hangman.js @@ -45,11 +45,9 @@ module.exports = class HangmanCommand extends Command { await msg.say('You have already picked that letter!'); } else if (word.includes(choice)) { await msg.say('Nice job!'); - confirmation.push(choice); - let results = word.split(''); for (let i = 0; i < word.length; i++) { if (word[i] === choice) { - results[i] = ''; + confirmation.push(word[i]); display[i] = word[i]; } }