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
+5 -1
View File
@@ -90,7 +90,11 @@ function start(length = settings.defaultLength, context) {
guesses: [],
});
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);
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.logger.info(`Wordle started: ${word.word.toUpperCase()}`);
}