A Discord bot to authenticate users in a Discord server according to if they are registered in a torrent tracker using Unit3D.
- Run
npm installin the bot's root folder. - Edit the .env file and fill the corresponding data:
NODE_ENV=production
TOKEN=YOUR TOKEN GOES HERE
PREFIX=YOUR PREFIX GOES HERE
- Configure the keys.js file in the db folder.
- Use
npm run startto start the bot. - After joining the bot to the Discord server create a role named "User", which is the one the authenticated users will have, so it should have the permission to use all the channels the authenticated users should read and write into.
- Change the permission of the "everyone" role so new users won't be able to see the channels authenticated users should, but they are able to read and type in the channel they are going to authenticate in.
- Type
<prefix>authenticatefor example:u!authenticate. The bot will send a DM to the user and is going to ask for the username in the site. - Send your site username within the next 60 seconds, if you fail to do so the bot will let you know by sending you a message and you will have to start the process from the begginning.
- After sending the username it will ask for your PID.
- Send your PID.
- If all the information is correct, it will let you access the server.
This bot was originally made for the JPTV Discord server, R.I.P JPTV.