Skip to content

Matthiasclee/livescores

Repository files navigation

LiveScores

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

Using the bot

See the /help command for details on usage.

Running the bot

To run the bot, run python3 main.py

Requirements

  • discord python library (pip3 install discord)
  • A discord bot token

Settings

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)"
}

Archiving historical data

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.


Privacy Policy | Terms of Service

About

Discord bot to provide live and historical data from the CyberPatriot scoreboard

Resources

Stars

Watchers

Forks

Contributors

Languages