The Discord Scoreboard Bot is a Python-based Discord bot designed to manage and display scoreboards in Discord channels. It allows users to generate and update scoreboards based on data provided in CSV files, and it automatically sends update messages and images at regular intervals.
- Generate and display scoreboards based on data from CSV files.
- Automatically update scoreboards and send update messages and images at regular intervals.
- Command-based interaction for managing and updating scoreboards.
To use the Discord Scoreboard Bot, you need to have Python installed on your system. You can install the required dependencies using pip:
pip install -r requirements.txt
Before running the bot, you need to configure the following:
- Discord Bot Token: Replace
'YOUR_DISCORD_BOT_TOKEN'
in the code with your actual Discord bot token. - CSV Files: Prepare CSV files containing the scoreboard data (
template.csv
andtemplate_coordinates.csv
in the provided code). - Image and Font Files: Replace
template_image.jpg
with your image file andtemplate_font.ttf
with your font file.
$scoreboard
: Generates and displays the scoreboard based on data from CSV files. Clears all messages in the channel before sending the update message and image.
The bot also includes a background task that runs every hour to update the scoreboard and send update messages and images automatically.
You can deploy this bot to Heroku with one click using the button below:
Contributions to the Discord Scoreboard Bot are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.