synzen / discord-invites

Preserve the entire history chain of who gets invited into a particular server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-invites

This project preserves the history of who gets invited for a particular server by recording the inviter and invitee of every invite into a database.

Instructions

  1. npm install
  2. Add related info to config.json. The not-so-obvious configs are explained below
  • token - Bot token
  • database - mongodb database uri
  • sessionSecret - express session secret (see here)
  • redirectURI - OAuth2 redirect URI that you must set in the bot application's OAuth2 page on Discord Developers
  • clientID - Bot's client ID found on Discord Developers
  • clientSecret Bot's client secret found on Discord Developers
  • inviteExpirationDays - Number of days before a created invite will expire
  1. Run node server
  2. Go to http://localhost:port/login (replace port with your config port). If you go to the main page without logging in, it will be mostly empty because you are unauthorized. Log in first.
  3. Access API features on http://localhost:port

The idea for this (which is an interesting one) is credited to https://github.com/shikhir-arora.

About

Preserve the entire history chain of who gets invited into a particular server.

License:MIT License


Languages

Language:JavaScript 96.4%Language:HTML 3.6%