Using correct format in IRC wordle instructions.
This commit is contained in:
parent
1212261b21
commit
352efb9147
|
@ -90,7 +90,11 @@ function start(length = settings.defaultLength, context) {
|
||||||
guesses: [],
|
guesses: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (config.platform === 'irc') {
|
||||||
|
context.sendMessage(`${getBoard(Array.from({ length }, () => null), false, context)} guess the word with ${config.prefix}w [word]! ${style.bgsilver(' X ')} not in word; ${style.bgyellow(' X ')} wrong position; ${style.bggreen(' X ')} correct position.`, context.room.id);
|
||||||
|
} else {
|
||||||
context.sendMessage(`${getBoard(Array.from({ length }, () => null), false, context)} guess the word with ${config.prefix}w [word]! ${style.grey(style.bold('X'))} not in word; ${style.orange(style.bold('X'))} wrong position; ${style.green(style.bold('X'))} correct position.`, context.room.id);
|
context.sendMessage(`${getBoard(Array.from({ length }, () => null), false, context)} guess the word with ${config.prefix}w [word]! ${style.grey(style.bold('X'))} not in word; ${style.orange(style.bold('X'))} wrong position; ${style.green(style.bold('X'))} correct position.`, context.room.id);
|
||||||
|
}
|
||||||
|
|
||||||
context.logger.info(`Wordle started: ${word.word.toUpperCase()}`);
|
context.logger.info(`Wordle started: ${word.word.toUpperCase()}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue