/DiscordBot-Template

A bot template with command , event , button , selectmenus , slashcommands handler and error handlers. Made in Discord.JS V13

Primary LanguageJavaScriptMIT LicenseMIT


『 Changelog 』

  • Fixed broken file path in bot.js.

『 Documentation 』

Click me to go the official documentation site which has all the required information.

『 FAQ 』

Click here to see frequently asked questions

『 Features 』

  • Chalk Logging
  • Organized layout and easily customizable.
  • Includes MessageCommands , SelectMenus , Buttons , ContextMenus and SlashCommands handler.
  • Inbuilt many command options that can be applied to all types of commands. (They will not work on events.)
  • Frequent updates to stay as upto date as possible.

『 Important Notes 』

  • NodeJS V16 and above.
  • ContextMenus and SlashCommands take 5 second each command file to create and update because of Discord's Ratelimit. But the run() function is updated immediately on startup so if you only need to update existing command code then it will be done instantly so thats a nice thing :D.
  • Global commands can take upto a hour to update because that's how Discord made global commands so we cannot do anything about it.
  • These are the collections where events and commands are stored.
client.events //Events Collection
client.commands.messageCommands //Message / Normal commands collection.
client.commands.messageCommands.aliases //Message / Normal command's aliases.
client.commands.slashCommands //Slashcommands collection.
client.commands.contextMenus //contextMenus collection.
client.commands.selectMenus //SelectMenus collection.
client.commands.buttonCommands //Buttons collection

『 Setup / Configuration 』

  • Install the required modules using the command npm i in your console and wait for it to finish.
  • Fill all the fields in Config.js.
  • Use the command node bot.js or node . to start the bot and enjoy :D

『 Contribution 』

If you want to contribute towards this repository then follow these steps.

  • Fork this Repository.
  • Edit your fork and save the changes you want to make.
  • Open the pull request.
  • We will check out the code and if it is fine then your PR will be merged.