Contributor Role Bot is a simple bot built in Python that grants Discord roles based on contribution activity to a GitHub organization.
This is used on the LeagueSandbox Discord to grant contributors either the "active contributor" or the "inactive contributor" role, depending on how long ago was the last contribution made.
- Install python
- Install requirements (
pip install -r requirements.txt
while in thebot
directory) - Set the
DISCORD_TOKEN
,GITHUB_TOKEN
, andORGANIZATION
environment variables - Edit the
settings.py
as required - Run
python main.py
To perform a deployment to Kubernetes, good instructions can be found from the deployment readme.
All updates merged to the master branch of this repository will be automatically deployed.