Ignore casing for hangman

This commit is contained in:
Brandon Rozek 2016-08-17 16:06:10 -04:00
parent 8dc3c74343
commit d06f585ade

View file

@ -56,7 +56,7 @@ module.exports = new Command("Hangman", condition, function(text, send, userData
if (guessedLetters.indexOf(letter) !== -1) {
send("You already guessed this letter");
} else {
if (word.indexOf(letter) !== -1) {
if (word.toLowerCase().indexOf(letter.toLowerCase()) !== -1) {
send("The letter is in the word!");
correctLetters.push(letter);
} else {