Skip to content
World Cup predictions, and the week I got called a cheater
← back to feed·~/blog/wc-prediction-game.mdx

World Cup predictions, and the week I got called a cheater

I self-host a Discord bot on my homelab. It started as a plain live-score feed for me and a few mates following football. The World Cup gave me a reason to build something more fun on top of it: a daily prediction game the whole server plays.

How it plays

Each day the bot posts the fixtures. You call a result with /predict, and you can pick matches up to a week ahead. Your picks lock at kickoff, so there's no quietly editing once the ball is rolling. Get the outcome right and you score a point. Get the exact score as well and you pick up two more.

ts
1let points = 0;
2if (outcome === finalOutcome) {
3 points = 1; // called the result
4 if (scoreHome === finalHome && scoreAway === finalAway) {
5 points += 2; // nailed the exact score
6 }
7}

When a match finishes the bot scores everyone's picks. When the day's games are all done it posts a podium with the top players and their Discord avatars, so the standings show up in the chat without anyone asking.

The week I got called a cheater

The first two games of the tournament, I called the exact scores. Mexico 2-0, then South Korea 2-1. Both spot on. The server did not take that well. Half of them jokingly accused me of rigging my own bot, like I'd wired the scoring in my favour. I hadn't. I just got lucky twice in a row on day one, and there's no convincing anyone of that once they've decided you're a cheat 😂

win

Whoever finishes top for the week gets a Discord role: World Cup Leader. It does nothing mechanical. It just sits next to your name for the following week so the whole server can see who called it best. That little bit of bragging rights turned out to be the whole point of the game.

There's a /wcweekly command to look back at who held the role in past weeks too, so the bragging has a paper trail. None of this is clever code. It's a small game bolted onto a score bot, but it's the part of the project people actually talk about every day.