Touchline
League management for Discord: divisions, promotion and relegation, playoffs and stats. It started as the National Bobble League's bot and now runs any league with any number of tiers.
the problem
A league with several divisions has different rules on every tier. Some rank by points scored, some by points per win. Teams move up and down between seasons, and last season's standings still have to show the old divisions. Doing that in spreadsheets breaks as soon as a result is entered late.
one season, start to finish
- setup
- regular season
- postseason
- offseason
- next season
Admins run all of it from one dashboard message in Discord. Each season remembers which division every team played in, so history stays right after promotions.
promotion and relegation
The bottom teams of each division swap with the top teams below. Optional playoffs can decide the last places.
a board that updates itself
One channel holds the league overview, a standings image for each division coloured by zone, and the brackets. About ten seconds after a result comes in, the board edits itself and announces playoff results, champions and promotions.
built to run unattended
- Health checks, and every error sent straight to Discord.
- A website can read the league's data without seeing anything private.
- It refuses to start with the wrong database permissions.