Coder Social home page Coder Social logo

discordauthbotv2's Introduction

Discord Auth Bot V2 (NOT READY TO USE!)

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

Prerequisites

Installation

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

Setup

  • 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

Usage

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

TODO:

  • Finish key activating and deactivating through discord
  • Unbind keys through dashboard
  • Generate keys through dashboard
  • Add role updating functionality

Questions?

If you have any questions, feel free to message me on twitter @DynxSZN

discordauthbotv2's People

Contributors

kraj011 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.