Fixed wordle hard hint letter background color.
This commit is contained in:
parent
af9f15d11d
commit
5ac935cc95
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue