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

Kruhlmann/gatekeeper

Repository files navigation

Gatekeeper discord bot

Discord Server Build Status Maintainability

Setup

To invite the bot click this link (or the image above) as the server owner. Invite the bot to the server of your choice and, if necessary, promote it to allow for administrative tasks.

Usage

Local setup

Dependencies

If you want to run your own instance of the bot the following packages are required:

  • gcc
  • autoconf
  • libtool
  • build-essential
  • make
  • automake
  • nodejs >=10.16.0
  • yarn
  • postgres >=11.5
  • node-pg-migrate
  • pg

Make sure to create the gatekeeper database and run the migration to create the tables.

postgres=# CREATE DATABASE gatekeeper;
CREATE DATABASE
postgres=# \q
git clone https://github.com/Kruhlmann/gatekeeper
cd gatekeeper
yarn install
yarn run upgrade

You must rename config.json.example to config.json and fill it in with the required details.

Environment variables

  • GATEKEEPER_DB_USR postgres database user
  • GATEKEEPER_DB_PWD postgres database user password
  • GATEKEEPER_DB_NAM postgres database name
  • GATEKEEPER_DISCORD_TOKEN discord API token