Skip to content

Buddier/Discord.js-v14-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Made in VS Code] ˙ [License MIT]
[Last Commit]


This is an example bot to make commands with categories using Discord.js v14, a powerful JavaScript library for interacting with the Discord API. This bot contains examples of commands with legacy prefix (deprecated) and slash commands.

Table of Contents


Getting started

Dependencies

Launch requirements:

  • Node.js v17 or higher,
  • npm v8 or higher (usually comes bundled with Node.js).

Also:


How to run this project

Bot preparing

  • 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:

Bot configuring

  • 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!

How to invite bot to a server

  • 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!


Heroku

Deploy

Support Server

If you find an error or need support, go to my discord server and open a ticket:

[ Discord Server Here ] ByteBound ©
[Discord server invite]

For contributors

  1. Contributing
  2. Download