A professional, modular, and scalable command handler template for Discord bots using discord.js v14. This boilerplate is designed to help developers jumpstart their bot development with a clean architecture.
- Modular Commands: Easily add new commands by creating separate files in the
/commandsdirectory. - Dynamic Event Handling: Automatically loads events from the
/eventsfolder. - Alias Support: Supports multiple keywords for a single command.
- 24/7 Uptime: Includes a built-in Express server to keep your bot alive on hosting services like Replit.
- Modern Standards: Fully compatible with Discord.js v14 features like
EmbedBuilder.
- Runtime: Node.js
- Library: discord.js v14
- Utility: Express (for Keep-Alive)
├── commands/ # Direct command logic
│ └── example.js
├── events/ # Discord event listeners
│ ├── ready.js # Bot initialization & command registration
│ └── message.js # Message-based command handler
├── config.js # Bot configuration (Token, Prefix)
├── index.js # Entry point
└── package.json # Dependencies
- Clone the repository:
git clone https://github.com/umutxyp/discordJS-V14.git - Install dependencies:
npm install - Configure
config.jswith your bot token and prefix. - Run the bot:
node index.js