Saltearse al contenido

Guía de inicio rápido

Esta guía le ayudará a comenzar rápidamente a desarrollar un nuevo bot utilizando zumito-framework.

Prerequisites

  • Node.js (v18 o superior)

  • Git

  • Discord Bot Token, puedes conseguir uno aquí

  • Discord Bot Client ID, puedes conseguir uno aquí

  • Discord Bot Client Secret, puedes conseguir uno aquí

Setup

  1. Crear un nuevo proyecto

    Ventana de terminal
    npx zumito-cli create project
  2. Start the bot

    Ventana de terminal
    npm run dev

It will clone the template project, install the dependencies and configure the .env file by asking you some questions.

Database config will be saved to the .env file. You can change it later if you want.

  • Tingodb is recommended for development since it doesn’t require any external database, it will save the data in a file.
  • MongoDB is recommended for production for better performance.

Next steps

Once the project is configured, you can start creating a module for your bot. Here is a list of things you may want to do: