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
npm install
- Add related info to config.json. The not-so-obvious configs are explained below
token
- Bot tokendatabase
- mongodb database urisessionSecret
- express session secret (see here)redirectURI
- OAuth2 redirect URI that you must set in the bot application's OAuth2 page on Discord DevelopersclientID
- Bot's client ID found on Discord DevelopersclientSecret
Bot's client secret found on Discord DevelopersinviteExpirationDays
- Number of days before a created invite will expire
- Run
node server
- 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.
- Access API features on http://localhost:port
The idea for this (which is an interesting one) is credited to https://github.com/shikhir-arora.