Added guess count to wordle finish.

This commit is contained in:
ThePendulum 2024-06-03 02:05:02 +02:00
parent 6a35049609
commit 1228928592
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ function play(guess, context) {
const definition = wordle.definitions[0] ? `: ${style.italic(`${wordle.definitions[0].slice(0, 100)}${wordle.definitions[0].length > 100 ? '...' : ''}`)}` : ''; 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);
context.sendMessage(`${getBoard(check, false, context)} is correct! ${style.bold(style.cyan(`${config.usernamePrefix}${context.user.username}`))} gets ${points} ${points > 1 ? 'points' : 'point'}. ${style.bold(wordle.word)}${definition}`, context.room.id); 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'}. ${style.bold(wordle.word)}${definition}`, context.room.id);
wordles.delete(context.room.id); wordles.delete(context.room.id);