GithubHelp home page GithubHelp logo

bot-ranks's Introduction

Bot-Ranks

Latest Release License Stars Forks


  1. Setup
    1. Bot
    2. Environment
    3. Prisma
  2. Contributors

Setup

Bot

We're create a bot in a Discord dashboard.

  1. Go to discord.com/developers and sign in with your account. (After, automatically redirect to applications section)

  2. Create a New Application. setup_bot_step_2

  3. Write a bot name, acept terms and click on Create. setup_bot_step_3

  4. Copy the APPLICATION ID and save it for later. setup_bot_step_4

  5. If you're a lazy person, you can copy the link below and replace YOUR_APPLICATION_ID with your APPLICATION ID save above.
    If you're a good programmer and you learn and don't just copy paste, you can follow the steps below:

    1. Click on OAuth2 section and select bot. setup_bot_step_5
    2. Select the permissions that watch the image below and copy the link. setup_bot_step_5bis
    3. Paste the link in your browser and select the server where you want to add the bot.

    For lazy people:

    https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&permissions=1978101132400&scope=bot
  6. Go to Bot section and click on Reset Token, copy the token and save it for later.

    ⚠️ Be careful with publish the token in internet.

    setup_bot_step_6

  7. Go to server that you added the bot in Step 5.
    In the left side bar you right click en your server and copy Server ID and save it for later. (If you don't see the Copy Server ID button, go to User Settings -> Advanced -> Developer Mode and enable it, or read this article)

    setup_bot_step_7

Environment

  1. Copy the .env.example file and rename it to .env. Remplace the values with the values saved in the previous steps.

    cp .env.example .env
  2. Use the Node.js version specified in the .nvmrc file. (Install it if you don't have it installed yet.)

    nvm use
  3. Install the dependencies.

    pnpm install
  4. Run the bot.

     pnpm dev

Prisma

Generate Prisma Migration

Create initial database schema in database

pnpm prisma migrate dev --name init

Database viewer

You can run this command in separate terminal

pnpm studio

TO-DO

  • Update README with prisma commands

Contributors

bot-ranks's People

Contributors

rapax00 avatar agustinkassis avatar jjramirezn avatar

Stargazers

Carlos Dugarte avatar  avatar Tincho avatar  avatar Seba Ibañez avatar

Watchers

 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.