Note: This is old code of mine, i recently crammed it out of the deepest depths of my private GitHub repositories (from 2021) and refactored it to be more reliable and modern.
- Message deletion logging
- Anti-spam protection
- Bad word filtering
- Server logging system
- Staff role management
- Custom prefix per server
- Welcome/Leave messages
- Auto-role assignment
- Server templates
- Server setup wizard
- Giveaway system with SQLite persistence
- Level system with XP tracking
- User statistics
- Server information
- Custom commands
- Server configuration
- Statistics viewing
- Easy setup interface
- Real-time updates
- Node.js v16 or higher
- SQLite3
- A Discord Bot Token (Get one here)
-
Clone the repository
-
Install dependencies:
npm install- Create configuration:
Create a botconfig.json file in the root directory. You can use the botconfig-sample.json as a template.
4. **Start the bot:**
```bash
npm start
The bot uses SQLite for data storage. The database file (bot.db) will be created automatically on first run with the following tables:
guild_settings: Server-specific configurationsuser_levels: XP and level trackinggiveaways: Active and past giveaways
Use the ?setup command to configure:
- Welcome/Leave channels
- Join messages
- Auto-roles
- Staff roles
- Logging channels
- Custom prefix
BotVision/
├── commands/ # Bot commands
├── events/ # Event handlers
├── public/ # Web dashboard assets
├── util/ # Utility functions
└── index.js # Main bot file
- Create a new file in the appropriate commands subdirectory
- Use the command template structure
- Export the command module
- The bot will automatically load the command
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature- Commit your changes:
git commit -m 'Add some 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.
Create a new issue on the github repository.