Democracy Bot

What is Democracy Bot? Democracy Bot is a bot that aims to make Discord Servers more democratic and transparent through allowing anyone to submit rules to be voted on.

Support Server Invite Link
Support Server Invite Link Invite Link

Commands

How to get started with the bot

  1. Invite the bot
  2. Set the channels where votes and rules are published: d!setChannel vote/rules #channel
  3. Optional: If required, change configuration values with the command: d!setConfig

Vote Statuses:

In the database, the status of a vote is referred to with an integer from 0 to 5. Each number corresponds to a differnet status.

Selfhosting

Selfhosting Democracy Bot is easy. It requires a MySQL database running.

  1. Clone the repository: $ git clone https://github.com/maxrumsey/Democracy
  2. Install dependencies: $ npm install
  3. Copy and Fillout the ENV template below: nano .env
  4. Run the bot with $ node bot.js

Example .env:

TOKEN=YOUR.DISCORD.BOT.TOKEN
DB_HOST=127.0.0.1
DB_USER=root
DB_PASSWORD=admin1234
DB_NAME=democracy
OWNER=YOUR.DISCORD.USER.ID
DBLAPI=DiscordBotListAPIToken