LiveScores is a discord bot that provides live data from the CyberPatriot Scoreboard.
LiveScores can also provide archived historical data.
CyberPatriot Discord: https://discord.gg/5gwnW7sTwv
Invite: https://discord.com/oauth2/authorize?client_id=1313965570068185118
See the /help command for details on usage.
To run the bot, run python3 main.py
discordpython library (pip3 install discord)- A discord bot token
To set up the bot, create a file titled secrets.json with the following format:
{
"discord_secret": "FXRXEXEXSXTX3XWXAXRXTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (your bot token here)",
"contact_info": "(any contact info here - this is not required for operation but is recommended, as it is required by CyberPatriot API documentation)"
}To archive historical data, run python3 download_data.py <name> where <name> is the name of the datasource.
After doing this, you will need to add <name> to "valid_data_sources" in settings to make the source usable.