The Discord Bot Template provides a solid foundation for creating feature-rich Discord bots using Discord.js. It includes various managers for handling message commands, buttons, select menus, slash commands, context menus, and modal forms. The template offers customization options, colorful logging, and a simple code structure.
simple-json-db
for the cooldown system as i rage quit and can't do it with fs
myself.node-recursive-directory
dependency.AutoCompleteInteraction
added.CommonJS
to ESM Module
.Src
.Collections
to Map
.messageCommandsAliases
has been renamed to messageCommands_Aliases
Quick.DB
has been removed and instead all cooldowns data will be now stored in CooldownDB.txt
in the root directory using fs
.chalk
has been replaced with tasai
.SlashCommands
and ContextMenus
has been seperated into different folders and managed differently.SlashCommands
have been simplified as now instead of Guilds/<GuildID>/<Files Here>
, you can use guilds: ["GUILD ID"]
type: ApplicationCommandType
property as the handler by default assumes it as ChatInput
.For detailed documentation on command options and managers, please refer to the following links:
<Client>.messageCommands
: Message commands cache<Client>.messageCommands_Aliases
: Message command aliases cache<Client>.events
: Client events cache<Client>.buttonCommands
: Button interactions cache<Client>.selectMenus
: Select menu interactions cache<Client>.modalForms
: Modal form interactions cache<Client>.slashCommands
: Slash commands cache<Client>.contextMenus
: ContextMenus commands cacheTo get started with the Discord Bot Template, follow these steps:
git clone https://github.com/rilecraft/discordbot-template
.npm install
(make sure npm is installed).src/config.js
file and fill in the necessary information.node .
to start the bot.Contributions to the Discord Bot Template are welcome. To contribute, please follow these guidelines:
Unstable
branch. Important: All changes must be made to the Unstable branch.Unstable
branch, and it will be reviewed promptly.