diff --git a/src/games/wordle.js b/src/games/wordle.js index 8809e9a..5df61da 100644 --- a/src/games/wordle.js +++ b/src/games/wordle.js @@ -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()}`); }