diff --git a/src/server/routes.ts b/src/server/routes.ts index 398e378..4b4b07a 100644 --- a/src/server/routes.ts +++ b/src/server/routes.ts @@ -168,7 +168,11 @@ function updateInlineKeyboard(gameSession: GameSession) { // only show top 8, everyone else needs to train harder .slice(0, 8) .forEach((player, idx) => { - inlineKeyboard.text(`${player.done ? idx + 1 : ".."}. ${player.name}`); + let inlineText = `${player.done ? idx + 1 : ".."}. ${player.name}`; + if (idx === 0 && Object.values(gameSession.players).filter((p) => p.score).length >= 2) { + inlineText += " 🏆"; + } + inlineKeyboard.text(inlineText); if (idx % 2 == 1) inlineKeyboard.row(); });