Keep in mind that to be able to get information from clubs, the Strava account you get the API key from needs to be in said clubs. I've found Strava limits the amount of clubs you can join in 24h to 5 currently.
- Edit the
codedb.json
file according to your needs. Make sure to set the data both on the first part of the file and on the second one as per the example file provided.
- Install the dependencies with
pip install -r requirements.txt
- You need to already have a Discord application and its API key, use this tutorial if you don't.
- Set the API keys by editing
discordbot.py
if running locally. - If using Heroku set the following variables:
Command | Function | Scope |
---|---|---|
!strava <club> |
Get the data from the specified club | Can be used by anyone |
!list |
List all the clubs located in the database | Can only be used a server administrator* |
*This is done to prevent hitting the API request limit by people spamming the command.
This project is licensed under the terms of the MIT license.