/lichess-discord

Grants roles to Lichess contributors

Primary LanguageJavaScriptMIT LicenseMIT

Liverifier is a Discord bot for any Discord server to give contributor roles to valid contributors on configured GitHub org

Commands

  • /ping replies with pong
  • /verify [github username] verify a GitHub user
  • /help get helpful information about how contributor role verification works

Notes

The bot takes care of non-dev contributors and dev contributors old/new everyone!

Setting up

Install dependencies including Octokit.js SDK

npm i

Create a Discord bot

Invite the bot to your server with permissions=2415938560&scope=bot+applications.commands

Create config.json file and configure discord token, client, and server (guild)

cp config.json.example config.json

Deploy slash commands

node deploy-commands.js

Start the bot so you can test the /ping slash command

node index.js

Create a GitHub Application and update config.json

Create a GitHub JSON Web Token and update config.json

Authors

@jalpp @ddugovic