A Discord bot with MongoDB integration inspired by the popular Dyno bot. This clone provides moderation, utility, and fun commands for Discord servers.
- Command handling system with folder organization
- MongoDB integration for data persistence
- Multiple command categories
- Support for both prefix and non-prefix commands
- Advanced permission management
- Node.js (v16 or higher)
- MongoDB instance (local or Atlas)
- Discord Developer Account
-
Clone the repository:
git clone https://github.com/friday2su/dyno-clone.git cd dyno-clone -
Install dependencies:
npm install
-
Create a
.envfile in the root directory with the following variables:DISCORD_TOKEN=your_discord_bot_token PREFIX=! MONGODB_URI=your_mongodb_connection_string -
Start the bot:
# Development mode (with hot reload) npm run dev # Production mode npm start
dyno-clone/
├── src/
│ ├── commands/ # Bot commands organized by category
│ ├── models/ # MongoDB models
│ ├── utils/ # Utility functions
│ └── index.js # Entry point
├── .env # Environment variables
└── package.json # Project dependencies and scripts
- Create a new file in the appropriate category folder under
src/commands/ - Use this template for your command:
module.exports = {
name: 'commandname',
description: 'Command description',
usage: '!commandname <args>',
category: 'category',
data: {
name: 'commandname',
description: 'Command description'
},
async execute(message, args, client) {
// Command logic here
}
};- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature-name - Submit a pull request
This project is licensed under the ISC License - see the LICENSE file for details.
- Discord.js for the Discord API wrapper
- Mongoose for MongoDB object modeling