My friends and I are pretty competitive, and by late 2025 most of us were playing Wordle almost every day. The Wordle app in our Discord already posted everyone’s results, and one day we just thought it would be nice to see a leaderboard of how everyone was doing.
So on 1 November 2025 I started a bot for it. A year later it’s still running, about 10 of us use it, and it has tracked 559 Wordles.
We wanted it for the competition. After it was made, it was mostly used for bragging rights, which is funny for what’s basically a menial daily task everyone does anyway. If anything, the leaderboard has started more arguments than it settled.
How it gets the scores
The bot doesn’t ask anyone to submit anything. The Wordle app already posts the day’s results in the channel, so the bot reads those posts as they arrive and saves each person’s score.
For everything before the bot existed, there’s an admin command that scrolls back through the channel’s history and parses every old results post. That backfill is how the all-time board starts from our first game, not from the day I turned the bot on.
It’s built with discord.js and slash commands, with scores stored in SQLite through Prisma.
Scoring a game of luck
This is the part I went back and forth on the most. Ranking people at Wordle over time is hard, because a lot of it comes down to luck rather than how good someone is.
The first version had a major flaw: it rewarded someone who had a really good day, even if they hadn’t played most of the other days. Play once, guess it in two, sit near the top.
What I landed on rewards quicker guesses, but also counts every day in the period, so not playing costs you:
// Solved: 1 guess = 100, 2 = 90 ... 6 = 50. Failed: 25. Didn't play: 0.
function dayPoints(entry) {
if (entry.status === 'solved') return 50 + (6 - entry.score) * 10
if (entry.status === 'failed') return 25
return 0
}
// score = average points per day × participation
const participation = 0.7 + 0.3 * (gamesPlayed / days)
A fail still beats skipping the day. That felt fairest: someone who plays and misses the word shouldn’t rank below someone who didn’t bother.
It can’t account for everyone, like a new player who only just joined. Instead of bending the formula for that, there are separate weekly, monthly, yearly and all-time leaderboards, so someone new can still top the week while the all-time board stays honest.
The bugs I can’t fix
Most of the bugs come from how the Wordle app behaves, not my code. It doesn’t post at a consistent time every day, and on some days it doesn’t post at all. When that happens, everyone shows up as a miss for the day even if they finished it.
That upsets people with a streak going, and fair enough. One person in our group has a perfect streak, apart from the two days the app decided not to post. There’s not much I can do about it when the bot depends on an app I don’t control.
There were plenty of my own bugs too, like daylight saving shifting which day a score landed on. Those at least I could fix.
Where it runs
We self-host it on a separate server our group was already running. It’s a lot more capable than my homelab, it’s easy to SSH into and work on, and not having another server to maintain is one less headache.
The refresh, with Claude Code
In November 2026 I finally did a cleanup I’d been putting off because it felt tedious: one scoring system for both the leaderboards and personal stats, a yearly leaderboard, pagination, and the bot’s first unit tests.
I let Claude Code have a go before diving in myself, and it got through all of it. I’d already worked on the bot a lot, and I’d written Claude config files describing how I like things done, so it picked up my coding style and the changes fit right in.
The nice part of running it is that when someone asks for something, even something small like another leaderboard category, I can just add it.
What’s next
Probably using it for things other than Wordle. I’ve always wanted a quotes feature, where people can save something someone said and look back on it later. It’s the little things people remember most, after all.