This repository hosts the source code for my Discord bots, including KC, the Lilith variant, and a Ferrari-themed F1 data bot. The bots are developed using Python 3.11 and integrate several libraries and APIs to provide a feature-rich experience.
/data-dump - Generates a data dump for a given year, event, session, and optionally a specific lap in .CSV format
/driver-comparison - Compares two driver's telemetry given a year, event, session, and optionally a specific lap
/gear-map - Generates a gear map for a given year, event, session, and optionally a specific lap
/strat - Generates a meme Ferrari strategy
/year-vs-year - Compares telemetry between two years for a given event and session
/next - Displays the next F1 event schedule
/next-f2 - Displays the next F2 event schedule
/wdc-standings - Displays the current World Drivers' Championship standings
/wcc-standings - Displays the current World Constructors' Championship standings
/can-win-wdc - Displays the drivers who can still win the WDC
/dall-e - Generates an image using OpenAI's Dall-E API using a given prompt
/stable - Generates an image using Stability.AI's Stable Diffusion API using a given prompt, and 5 optional parameters
/clear - Clears the current queue
/leave - Leaves the voice channel
/pause - Pauses the current song
/play [url]/<search terms> - Plays music from a YouTube URL or search terms
/queue - Displays the current queue
/resume - Resumes the current song
/skip - Skips the current song
/join - Joins the voice channel
/tts-kick - Kicks the bot from the voice channel
/hype - Generates a hype emojipasta about a given prompt
/weather - Displays the current weather for a given location
/outlook - Pulls the Day 1 convective outlook from the Storm Prediction Center
/radar-loop - Pulls the latest radar loop for the Mississippi Valley from the National Weather Service
/bmx-radar - Pulls the latest loop from the BMX radar from the National Weather Service
/apod - Pulls the Astronomy Picture of the Day from NASA
To run the KC Discord bot, ensure you have the following packages installed:
aiohttp==3.8.4
discord.py==2.2.3
elevenlabs==0.2.17
fastf1==3.0.3
icalendar==5.0.7
openai==0.27.7
Pillow==9.5.0
PyNaCl==1.5.0
pyowm==3.3.0
setuptools==67.8.0
stability_sdk==0.8.1
supervisor==4.2.5
youtube-dl (from master branch!)
- Clone the repository or download the source code.
- Install the required dependencies as listed in the Dependencies section:
pip install -r requirements.txt
- Obtain necessary API keys and tokens for OpenAI, Stability.AI, ElevenLabs, and Discord.
- Update the configuration files with the obtained keys and tokens.
- Follow the usage instructions below to run the bot.
To run the KC Discord bot, simply run the following command:
./docker.ps1
python3.11 kc.py