Fantasy Football Discord Bot
ESPN league updates on a schedule, slash commands, and a web dashboard.
A Discord bot that posts ESPN fantasy football updates on a schedule, answers slash commands, and serves a web dashboard of league history. It runs as a Docker container with league credentials supplied through config.env.
What the container runs
The entrypoint gamedaybot/run.py starts three parts in one process:
- A scheduler that posts recurring reports to a Discord webhook.
- A Discord gateway bot that answers slash commands, if
DISCORD_BOT_TOKENis set. - A Shiny dashboard on port
8000, backed by a SQLite database indata/.
A second container, cloudflared, publishes the dashboard at the hostname in cloudflared/config.yml.
Where to go next
| Page | Contents |
|---|---|
| Setup | Requirements, first start, and day-to-day container commands. |
| Configuration | Every config.env variable and what it changes. |
| Reference | Scheduled posts, slash commands, the dashboard, and the project layout. |
| Deploy | Cloudflare Tunnel and moving the stack to a remote host. |
| Troubleshooting | Symptoms, causes, and fixes. |
Credits
Built on gamedaybot by Dean Carlson.