Skip to content

Bot for manage and control temporal rank in discord server.

Notifications You must be signed in to change notification settings

lacrypta/bot-ranks

Repository files navigation

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

About

Bot for manage and control temporal rank in discord server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages