/cred-voting-discord-bot

SourceCred-weighted tallying bot for Discord

Primary LanguageJavaScript

Usage

Use the /tally command and pass the messagelink to the message you want to tally, and optionally a custom decay factor between 0 and 1.

/tally https://discord.com/channels/798975165342023700/798975167971196981/894988234331947028

Installation

This bot should work self-hosted (.env) or on repl.it (repl secrets)

  1. Fork this repo
  2. Change config.js
  3. Set up a host on your preferred hosting platform
  4. Create an application+bot in the Discord Developer Portal
  5. Add the following environment variables to your host:
    1. CLIENT_ID
    2. BOT_SECRET
  6. Invite the bot to your server(s) with the following link (substitute with your own client id):
https://discord.com/api/oauth2/authorize?client_id=555555555555555&permissions=84992&scope=bot