mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Wow
This commit is contained in:
@@ -45,11 +45,9 @@ module.exports = class HangmanCommand extends Command {
|
|||||||
await msg.say('You have already picked that letter!');
|
await msg.say('You have already picked that letter!');
|
||||||
} else if (word.includes(choice)) {
|
} else if (word.includes(choice)) {
|
||||||
await msg.say('Nice job!');
|
await msg.say('Nice job!');
|
||||||
confirmation.push(choice);
|
|
||||||
let results = word.split('');
|
|
||||||
for (let i = 0; i < word.length; i++) {
|
for (let i = 0; i < word.length; i++) {
|
||||||
if (word[i] === choice) {
|
if (word[i] === choice) {
|
||||||
results[i] = '';
|
confirmation.push(word[i]);
|
||||||
display[i] = word[i];
|
display[i] = word[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user