Skip to content
/ discord.js Public template

Discord.js bot template to start building your own bot. Contains a command handler, database, and basic commands.

License

Notifications You must be signed in to change notification settings

saatvikn/discord.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Discord.js Bot Template

You can use this template to get started with creating your professional discord.js bot!

⚠ But, this is a licensed repository so make sure to give me credit for my code!

📃 Information

~ If you are new, then i suggest you go and check out the official discord.js guide https://discordjs.guide/ to get started, then you can come back here!

~ For the documentation of the discord.js library refer to https://discord.js.org/ !

📲 Pre-Requirements

To run a bot on your computer you would require the following things:-

1) Node.js and Node Pakage Manager (version 12 or higher)

~ To install this go to the Node.js Website.

2) Discord.js (version 12)

~ To install discord.js, simply run the npm install discord.js in your console of your project folder.

For a detaled description of this refer to this link.

⚙ Setup

~ Make sure to complete the .env file with your appropriate information.

~ For setting up MongoDB database refer to this video and this video.

~ Run npm install in your console to install all the npm pakages required!

⁉ Issues

~ If you are having issues with how to get started or installation, then drop an issue in this repository!

📥 Suggestions

~ If you have a feature request or want to suggest me something then please go ahead and open an issue in this repository!

How to add more commands?

Add a new javascript file in the folders present in the commands folder! The basic commands layout is-

 module.exports = {
 name: "Command name",
 permissions: ["array", "of", "permissions"],
 args: boolean,
 aliases: ["array", "of", "aliases"]
 category: "Category name",
 description: "Command description"
 usage: "[args input]",
 run: async (client, message, args, prefix) => {
      The code in here to execute
   }
 }

About

Discord.js bot template to start building your own bot. Contains a command handler, database, and basic commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published