A feature-rich Discord bot with music, AI responses, moderation, and social media bridging.
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your tokens
# Run the bot
python bot.py- 🎵 Music Player - Play YouTube music in voice channels
- 🤖 AI Responses - Flirty AI personality powered by g4f
- 🛡️ Moderation - Kick, ban, timeout, purge commands
- 📱 Social Bridges - Instagram DM & Messenger integration
- 📊 Statistics - Track user and server stats
- 🎮 Fun Commands - Games, memes, and more
- 💬 Slash Commands - Modern Discord interactions
Haawa-Bot/
├── bot.py # Main entry point
├── cogs/ # Command modules
│ ├── general.py # Basic commands
│ ├── music.py # Music player
│ └── ...
├── bridges/ # Social media integration
├── utils/ # Utilities (DB, AI, etc.)
└── docs/ # Documentation
- Quick Start Guide - Get started quickly
- User Manual - All commands and features
- Deployment Guide - Deploy to your VPS
- Migration Guide - Migrate from old structure
haawa ping- Check bot latencyhaawa roll 2d6- Roll dicehaawa userinfo [@user]- User informationhaawa serverinfo- Server information
haawa play <song>- Play a songhaawa pause- Pause playbackhaawa skip- Skip current songhaawa queue- Show queue
haawa <message>- Chat with AIhaawa imagine <prompt>- Generate images
- Python 3.10+
- FFmpeg (for music)
- PostgreSQL (for database)
- Discord Bot Token
- Environment variables (see .env.example)
git clone <your-repo>
cd Haawa-Bot
pip install -r requirements.txt
python bot.py# Create service file
sudo nano /etc/systemd/system/haawa-bot.service
# Enable and start
sudo systemctl enable haawa-bot
sudo systemctl start haawa-bot# Install dependencies
pip install -r requirements.txt
# Run in development mode
export ENVIRONMENT=development
python bot.py
# Check logs
tail -f haawa-bot.logRequired:
TOKEN- Discord bot tokenDATABASE_URL- PostgreSQL connection string
Optional:
AI_MODEL- AI model to use (default: gpt-4o-mini)COMMAND_PREFIX- Bot prefix (default: "haawa ")LOG_LEVEL- Logging level (default: INFO)BRIDGE_CHANNEL_ID- Channel for social media bridgesINSTAGRAM_USERNAME- Instagram usernameINSTAGRAM_PASSWORD- Instagram password
See .env.example for full list.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - See LICENSE file for details
- Check docs/ for detailed documentation
- Review logs:
tail -f haawa-bot.log - Open an issue for bugs or feature requests
#This may or may not be the preferred repo
Built with ❤️ using:
Made with 💕 by the Haawa Bot team