/ContributorRoleBot

A bot that grants Discord roles based on contribution activity

Primary LanguagePython

Contributor Role Bot

Build Status codecov

What is it

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.

Setup

  • Install python
  • Install requirements (pip install -r requirements.txt while in the bot directory)
  • Set the DISCORD_TOKEN, GITHUB_TOKEN, and ORGANIZATION environment variables
  • Edit the settings.py as required
  • Run python main.py

Deployment

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.