test

Constatic

Discord Bot Base

Get started

First steps to starting a new discord bot project

Requirements

You must follow these requirements before you begin

Generating the project

To start a new discord bot project you can use the CLI.

Create a new folder for your project and open it on your terminal

Use the command below to start cli

npx constatic@latest

Select Init discord bot project

Init discord bot

Enter the project name

Tip

Enter . to create the project in the current directory and use its name

Bot name

Select a database preset (optional)

Bot db

Select extra features (optional)

Bot features

Select your package manager to install dependencies (optional)

Bot deps

Ready! Your project has been generated and you can start developing your bot.

Setup the project

With the project generated, place your bot token in the .env file that is at the project root.

After placing the token you can execute the project in development mode using the command below:

npm run dev

After that your bot should be online and you can start development!

Developing your bot

Below are some concepts of this bots base you can use to build modern bots:

On this page