Using correct format in IRC wordle instructions.

This commit is contained in:
ThePendulum 2024-06-04 17:25:43 +02:00
parent 1212261b21
commit 352efb9147
1 changed files with 5 additions and 1 deletions

View File

@ -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()}`);
} }