f1databot is a Discord bot that can fetch data for Formula One races (using the fastf1 package for python) and create plots. Users request plots from the bot using interactions (a.k.a slash commands) in Discord and the bot responds with the requested plot.
The plots that can currently be produced are:
- A map of a track
- The weather during a session (temp, rainfall)
- The tyre usage (compound type and length of stint) by each driver during a session
- The fastest laps completed by all drivers in a session
- The fastest laps completed by all drivers in each qualifying session
- The fastest laps versus fastest 'ideal' laps for all drivers in a session
- The fastest lap time versus fastest top speed for each driver in a session
- The ranked sector times for all drivers and each sector in a session
- The lap time evolution over a qualifying session
- Telemetry comparison for two drivers over one lap (speed, braking, gear, DRS, time delta)
- Cornering comparison for two drivers for a single corner of a lap
- The race positions for all drivers for all laps over a race
- The race gaps for all drivers for all laps over a race compared to a reference time
- Clone the repository:
git clone https://github.com/grahamjwhite/f1databot.git - Create a Discord bot using the Discord developer portal. There are good guides around for doing this.
- Set the environment variables required in
constants.py - Run the bot by running the
bot.pyfile in python:python bot.py
If you find this project useful, please consider supporting it by:
- Acknowledging this repo if you use it for your own project
- Buying me a coffee
- Starring the repository on GitHub
- Reporting issues and suggesting features
- Contributing code via pull requests