Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

A bot that grants Discord roles based on contribution activity

Notifications You must be signed in to change notification settings

LeagueSandbox/ContributorRoleBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A bot that grants Discord roles based on contribution activity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •