GithubHelp home page GithubHelp logo

sources's Introduction

OA2

๐Ÿฆˆ Requirements

  • NodeJS
  • Server Mariadb/MySQL
  • Datacenter/Residentiel Proxy
  • Optionnel:
    • PM2

๐Ÿš€ Installation

  • Install typescript npm install -g typescript
  • Install package https-proxy-agent on global npm install -g https-proxy-agent
  • Create a User with all privileges in your database and put the credentials in Database/index.ts and Routine/.env
  • Go in all folder API, Client, Database and Routine and run npm install in each folder, after that run npx tsc in each folder
  • Run npm start in API folder
    • Using PM2: pm2 start dist --name "API"
  • Use runClient.sh in Client folder to run the client
    • Example: ./runClient.sh IdOfBot Token
    • You can also use runClient.bat IdOfBot Token on Windows
  • Configure your proxy in ips-data_center.json
    • Example:
[
    "IP:PORT:USER:PASSWORD",
    "IP:PORT:USER:PASSWORD",
    ...
]

๐Ÿ“ Bot Configuration

  • Got in discord developer portal and create a new application
  • Check All Privilege Intents
  • Go in OAuth2 -> General and fill the Redirects field with the link of your API
    • Exemple: http://localhost:3000/api/discord/callback
    • Exemple: http://IP:3000/api/discord/callback
    • Exemple: http://DOMAIN:3000/api/discord/callback
    • Exemple: http://DOMAIN/api/discord/callback

๐Ÿ”’ Get Invite Link

  • Go in OAuth2 -> URL Generator and check the bot scope and the Administrator permission

๐Ÿ“… Routine

โš ๏ธ For the routine you need a proxy list !

  • Start the routine with node dist/Routine in Routine folder
    • Using PM2: pm2 start dist/Routine/Routine.js --name "Routine"

sources's People

Contributors

m1000fr 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.