From 5ac935cc959ba8efd5068e93555bb639d250a14d Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Fri, 5 Jul 2024 00:36:41 +0200 Subject: [PATCH] Fixed wordle hard hint letter background color. --- src/games/wordle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/games/wordle.js b/src/games/wordle.js index 8e35a50..8d3b18d 100644 --- a/src/games/wordle.js +++ b/src/games/wordle.js @@ -131,7 +131,7 @@ function play(guess, context) { const valid = prevLetters.every((letter, index) => { if (wordle.letters.get(letter) === false && !guessLetters.includes(letter)) { context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc' - ? style.bggreen(` ${letter} `) + ? style.bgyellow(` ${letter} `) : `${style.grey(style.code('['))}${style.orange(style.bold(style.code(letter)))}${style.grey(style.code(']'))}` }.`, context.room.id); @@ -140,7 +140,7 @@ function play(guess, context) { if (wordle.letters.get(letter) === true && letter === wordle.word[index] && letter !== guessLetters[index]) { context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc' - ? style.bgyellow(` ${letter} `) + ? style.bggreen(` ${letter} `) : `${style.grey(style.code('['))}${style.green(style.bold(style.code(letter)))}${style.grey(style.code(']'))}` } in the correct position.`, context.room.id);