A lightweight structure for building Discord.js bots with a clean command and event system. This repo is set up to keep dependencies fresh using Dependabot, so you can focus on writing features instead of chasing updates.
- 📂 Organized project structure (commands, events, handlers, utils).
- ⚡ Slash command support with auto-registration.
- 🧩 Easy event handling (drop in files, they load automatically).
- 🗄️ MongoDB integration out of the box.
- 🔐 Centralized error handling.
- 🔄 Automatic dependency updates via Dependabot.
src/
├── commands/
│ ├── public/
│ │ └── ping.js
│ └── admin/
│ └── userInfo.js
├── events/
│ ├── client/
│ │ └── ClientReady.js
│ │ └── InteractionCreate.js
│ └── server/
│ └── GuildCreate.js
├── utils/
│ └── helpers.js
├── models/
│ └── Data.js
├── index.js
└── .env
git clone https://github.com/RlxChap2/discord-js-structure-v14.git
cd discord-bot-structure-v14npm installBOT_TOKEN=your-bot-token-here
MONGO_URI=your-mongodb-uri
node .This repo uses Dependabot to automatically check for npm package updates. You’ll see pull requests whenever new versions are available. Merge them to stay up to date.
Pull requests are welcome. If you’d like to suggest a feature or report a bug, please open an issue first.
This project is licensed under the MIT License.