Problem
Pickup football signups arrive in the group chat as free text: positions, shirt numbers, payment ticks and two languages, all mixed. Someone sorted them by hand every week.
Our fantasy league has a weekly cash pot and deadlines the official app doesn’t push to where we talk. Standings and money were kept by hand.
Opportunity
Asking everyone to install another app was a poor bet. The group chat was already open, so the tool had to live inside it and understand messages the way people actually type them.
Product
Mention the bot with a list and it works out what you want. These are real chats. Names, avatars, account names and match details are covered.
The league bot answers in cards, and writes a front page for each gameweek:
Process
The calls that mattered:
- Use a model only where rules fail.
- Reading free-text names and positions needs a language model. Drawing teams is ordinary random code, and a few patterns decide which job a message is.
- A pasted list is data, not instructions.
- Both prompts say so, because anyone in the group can type anything into that message.
- Encode the pitch rules.
- Goalkeepers don’t pay, so they never appear on the unpaid list.
- No money until the week is final.
- The live front page shows positions only. Payouts appear once scores are settled, and players still tied after tiebreaks share the prizes.
- Same week, same jokes.
- Headlines are picked from written templates with a seed per gameweek, so a rerun doesn’t change the story. The rule: mock the decisions, never the people.
- Nobody should memorise commands.
- Every league reply carries tap buttons, which also work without mentioning the bot.
Build
-
In
- LINE group messagebot is mentioned or a button tapped
- ScheduleFriday 09:00 digest, daily recap check
-
Cloudflare Worker
- Check the signature
- Route the requestpayments, teams, positions, league
-
Do the work
- Language modelreads messy lists
- Plain codeteam draw, scores, payouts
- Public FPL data and KVlive points and the ledger
-
Out
- Text or rich cardback into the chat
In the football bot, a list with ticks goes to the payment check, a list headed “Participants” goes to the team draw, and anything else is sorted by position.
Technology
- Workers over an always-on server
- The football bot started as a Node server and moved to a Worker. The league bot deploys itself when a change is merged.
- Rich cards for the league
- Standings and money are tables, so they are sent as LINE Flex messages built in code.
Outcome
Both are part of the weekly routine: the list gets sorted in the chat, and the league’s ledger keeps itself. I haven’t measured how much time either saves.
Proof
- 33commits on the league bot
- 16commits on the football bot
- 104reads on one signup message
Commits read from the repositories on 28 Nov 2026. The read count is visible in the Sep 2026 screenshot above; it shows who saw one message, not what the bot achieved.