Personal project · EA Sports FC Pro Clubs
Broughton Town
A website for a team that plays football together in the EA Sports FC video game, with a live match player and a Discord bot that posts results.
- My role
- Designed and built the club website, streaming player and Discord bot
- Development
- AI-assisted development
- Tools
- TypeScript, Fastify, SQLite, Discord.js, HLS
A home for the club
My cousin runs an EA Sports FC Pro Clubs team called Broughton Town. The team uses Discord to organise matches and find new players, so I built them a website that made it easy to see how the club was doing, watch them play and join the squad.
When the team goes live
I wanted people to be able to open the website during a match and start watching. The homepage checks whether Broughton Town is live on Twitch in an EA Sports FC category. When it is, the usual homepage banner gives way to a player with sound controls and links to Twitch and Discord. When the stream ends or switches away from FC, the usual banner comes back.
I built the HLS player into the page so I could lay it out around the video on desktop and let it play inline on phones. The server handles the playlist and Twitch still delivers the video. I kept the official Twitch embed available as a fallback.
Loading video…
Getting results into Discord
I built the site and the bot to share the same match history. Once EA makes a finished match available, the service saves the result, adds it to the website and posts a full-time report in Discord. Where the match data includes them, the report names the scorers, assisters and Player of the Match and links to the full breakdown.
Loading video…
I also gave the club one records post that the bot updates in place. The club owner can manage the squad from Discord, including changing player names and photos, choosing a captain and deciding who appears on the website.
Keeping the club’s history
The website keeps match breakdowns, squad stats, head-to-head records and results from earlier editions of the game. I used SQLite so the website could read its own record of the club’s matches while the service checks EA in the background. I added an edition switch so the club could start a new season and keep its earlier results.