mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Ouch
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class HangmanCommand extends Command {
|
||||
await msg.say('Nice job!');
|
||||
confirmation.push(choice);
|
||||
let results = word.split('');
|
||||
for (let i = 0; i > results.length; i++) {
|
||||
for (let i = 0; i < word.length; i++) {
|
||||
if (word[i] === choice) {
|
||||
results[i] = '';
|
||||
display[i] = word[i];
|
||||
|
||||
Reference in New Issue
Block a user