This is an example bot to make commands with categories using Discord.js v13, a powerful JavaScript library for interacting with the Discord API. This bot contains examples of commands with legacy prefix (deprecated) and slash commands.
Launch requirements:
Also:
- Application Bot on Discord Developer Portal.
-
Step 1: Go to «My Applications» page on Discord Developer Portal.
-
Step 2: Click on the «New Application» button:
- Step 3: Write the name of your bot and click the «Create» button:
- Step 4: Go to the «Bot» category:
- Step 5: Click on the «Add Bot» button:
- Step 6: Click on the «Copy» button, this to copy the Bot Token:
- Step 7: Rename
.env.example
to.env
. - Step 8: Edit
.env
file and paste your bot token. - Step 9: Edit the
config.js
file to your liking. - Step 10: Install bot dependencies with
npm i
. - Step 11: Start the bot with
npm start
!
- Step 1: Select your application, then click on "OAuth2" and open "URL Generator":
- Step 2: Here you have to select the permissions of your Bot, in SCOPES first select "Bot" and "applications.commands", then in BOT PERMISSIONS select "Administrator" and then below you will receive the invitation of your bot click on the «Copy» button
- Step 3: Paste the link of the invitation of your bot that you copy in a tab of your browser, then select the server and give the button "Continue" then the button "Authorize", after this complete the capcha and the bot would already be inside your server!
If you find an error or need support, go to my discord server and open a ticket: