Discord Auth Bot V2 is a new and improved version of my original discord auth bot. This project is written with the Node.js framework and React as opposed to using java, making it much easier to setup.
My goals for this project:
- Easier to setup
- Nice, browser based UI to manage server (React)
- Easy to integrate with discord
- Make sure you have npm installed (https://www.npmjs.com/get-npm)
- Make sure you have yarn installed (https://yarnpkg.com/en/)
- Make sure you have gatsby installed (https://www.gatsbyjs.org/docs/)
Run the following commands to install
- Quick note: If you are on a mac or linux machine, you may need to run the following commands with sudo in front of them (i.e. sudo npm install)
cd [file path of where this project is stored]
npm install
npm run develop
- Go to https://discordapp.com/developers/applications/
- Create a new bot and name it what you want and give it an icon if you would like
- Go to Bot on the left panel and click create bot
- Click reveal token, copy this token, and go to src/info/settings.json and change the token string to the token you copied (TODO: Set the token in the dashboard)
- Save the settings.json file
The bot does not yet have all the functionality I would like it to have, but for the time being here is how to use it:
-
Users can DM the bot with !help for how to activate a key with the bot
-
Users can DM the bot with !activate <> to activate a key with the bot
-
Users can DM the bot with !deactivate <> to deactivate a key with the bot
-
To open the dashboard, open a browser with: http://127.0.0.1:8000/
-
For the time being, you can not set the token, unbind user keys, nor generate keys from the dashboard, but in the meantime you can see in real time users activating and deactivating keys from the manage keys section of the dashboard
-
To add a key, simply open the src/info/users.json file and add a key in the format: "THE KEY YOU WANT":"none"
- Make sure that the value is none for the key to allow a user to bind to that key
-
To deactivate a key just search for the key in the same json file and in the value section it should be the user's username. Replace that with "none" to deactivate it manually
- Finish key activating and deactivating through discord
- Unbind keys through dashboard
- Generate keys through dashboard
- Add role updating functionality
If you have any questions, feel free to message me on twitter @DynxSZN