A modern, modular and dev-friendly discord.js
- 🎯 Unified Commands - Support for both slash and prefix commands
- 🔧 Enhanced Context - Simplified Discord API interactions with
ctx
object - 📦 Plugin System - Modular architecture with built-in plugins
- ⚡ Hot Reloading - Development-friendly command and event reloading
- 🛡️ Built-in Security - Rate limiting, permissions, and error handling
- 📊 Statistics & Logging - Command tracking with beautiful colored logs
- 🎨 Rich Embeds - Intuitive embed builder with fluent API
- ⏰ Task Scheduling - Cron jobs and interval-based tasks
npm install @axrxvm/betterdiscordjs
const { Bot } = require('@axrxvm/betterdiscordjs');
const bot = new Bot(process.env.DISCORD_TOKEN, {
prefix: '!',
commandsDir: './commands',
eventsDir: './events'
});
// Inline command
bot.command('ping', async (ctx) => {
await ctx.reply('🏓 Pong!');
});
// Event handler
bot.on('ready', (ctx) => {
console.log(`${ctx.user.tag} is ready!`);
});
bot.start();
├── Bot.js # Main bot class
├── index.js # Framework entry point
├── loaders/ # Command and event loaders
├── plugins/ # Plugin system and built-in plugins
├── utils/ # Utilities (cache, logger, scheduler, etc.)
├── testbot/ # Example bot implementation
└── docs/ # Comprehensive documentation
betterdiscordjs includes a powerful plugin system with built-in plugins:
const { Bot, plugins } = require('@axrxvm/betterdiscordjs');
const bot = new Bot(token)
.use(plugins.WelcomePlugin)
.use(plugins.ModerationPlugin)
.use(plugins.AutoModPlugin);
bot.start();
- Node.js 16.9.0 or higher
- Discord.js v14.22.1
- A Discord bot token
npm install @axrxvm/betterdiscordjs
git clone https://github.com/axrxvm/betterdiscordjs.git
cd betterdiscordjs
We welcome contributions! Please see our Contributing Guidelines.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- 📖 Documentation
- 🐛 Issues
- 💬 Discussions
- Built on top of the powerful discord.js
- Inspired by modern web frameworks
- Made with ❤️ for the Discord developer community
⭐ Star this repo if you find it helpful!