mirror of
https://github.com/Brandon-Rozek/Rozbot.git
synced 2024-11-07 20:30:34 -05:00
Ignore casing for hangman
This commit is contained in:
parent
8dc3c74343
commit
d06f585ade
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ module.exports = new Command("Hangman", condition, function(text, send, userData
|
||||||
if (guessedLetters.indexOf(letter) !== -1) {
|
if (guessedLetters.indexOf(letter) !== -1) {
|
||||||
send("You already guessed this letter");
|
send("You already guessed this letter");
|
||||||
} else {
|
} else {
|
||||||
if (word.indexOf(letter) !== -1) {
|
if (word.toLowerCase().indexOf(letter.toLowerCase()) !== -1) {
|
||||||
send("The letter is in the word!");
|
send("The letter is in the word!");
|
||||||
correctLetters.push(letter);
|
correctLetters.push(letter);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue