diff --git a/src/games/wordle.js b/src/games/wordle.js index f56472c..2d008aa 100644 --- a/src/games/wordle.js +++ b/src/games/wordle.js @@ -192,7 +192,8 @@ function play(guess, context) { const definition = wordle.definitions[0] ? `: ${style.italic(`${wordle.definitions[0].slice(0, 100)}${wordle.definitions[0].length > 100 ? '...' : ''}`)}` : ''; - context.setPoints(context.user, points); + context.setPoints(context.user, points, { key: wordle.mode === 'hard' ? 'hardle' : 'wordle' }); + context.sendMessage(`${getBoard(check, false, context)} is correct in ${wordle.guesses.length} guesses! ${style.bold(style.cyan(`${config.usernamePrefix}${context.user.username}`))} gets ${points} ${points > 1 ? 'points' : 'point'}${assignBonusPoints ? '. ' : ` (${wordle.word.length}-letter dictionary too small for bonus points). `}${style.bold(wordle.word)}${definition}`, context.room.id); wordles.delete(context.room.id);