Coder Social home page Coder Social logo

monstertaeratto / altv-discord-oauth2-connector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hicham4i/altv-discord-oauth2-connector

0.0 0.0 0.0 55 KB

altv:MP resource that uses OAuth2 discord api to connect players to server depanding on the roles

JavaScript 62.52% HTML 9.81% CSS 27.67%

altv-discord-oauth2-connector's Introduction

alt:V | discord-OAuth2-connector

altv:MP resource that uses OAuth2 discord api to connect players to server depending on the roles

Requirements

  • clone this repo in dir 'discord' otherwise you need to change the code
  • In "discord" directory run these command.
npm i
  • you need to create a discord app & bot here Discord applications
  • go to OAuth2 tab and add a Redirect URI as
http://resources/discord/html/index.html

  • copy ClientID and
  • got to : discord/server/config.json
  • select ************** and past to set your client_id
  • copy token from bot tab and
  • got to : discord/server/config.json
  • past it where key = token

  • create 'whitelist' role in your discord server and 'owner' role
  • start the resource
  • send !set config to the bot
  • and !wl to update the list of the whitelisted players (users that have role whitelist)

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.