A feature-rich Discord bot with modular architecture and modern web interface
HazeBot is a comprehensive Discord bot built with Python and discord.py, featuring modular cogs, RESTful API, and a modern Flutter admin panel. Originally designed for The Chillventory server, it is easily adaptable for any community.
- ๐ฎ Gaming - Rocket League stats with rank tracking & Warframe market integration
- ๐ญ Memes - Daily automated memes + custom generator (100+ templates)
- ๐ซ Tickets - Support system with email transcripts & auto-archiving
- ๐ ๏ธ Moderation - Interactive mod panel with warnings & channel controls
- ๐ Management - AI-powered changelogs, todo lists, welcome system
- ๐ REST API - Modular Blueprint architecture (300 lines vs 6500)
- ๐ฑ Admin Panel - Flutter cross-platform app with Material Design 3
# Clone and setup
git clone https://github.com/inventory69/HazeBot.git
cd HazeBot
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your DISCORD_BOT_TOKEN and DISCORD_GUILD_ID
# Configure server IDs
# Edit Config.py PROD_IDS dictionary with your channel/role IDs
# Run bot only (APIServer cog is automatically skipped)
python Main.py# After completing basic setup above, install API dependencies:
pip install -r api_requirements.txt
# Add API configuration to .env:
# API_PORT=5070
# SECRET_KEY=your-secret-key-here # Generate: python -c "import secrets; print(secrets.token_hex(32))"
# API_ADMIN_USER=admin
# API_ADMIN_PASS=secure-password
# CORS_ORIGINS=https://your-domain.com,http://localhost:3000
# Run bot with API (loads APIServer cog automatically)
python start_with_api.pyNote: Main.py skips APIServer cog | start_with_api.py loads it
๐ Detailed Instructions: docs/BOT_SETUP.md
๐ง First Time? Follow the Complete Setup Guide for step-by-step instructions
- Rocket League - Stats, rank tracking, auto rank-up notifications
- Warframe - Market prices, item search, live alerts/fissures/invasions
- Automated daily posting from Reddit/Lemmy
- Custom generator with 100+ Imgflip templates
- Interactive creation with GUI configuration
- Interactive ticket system with real-time chat
- Admin panel integration with WebSocket updates
- Email transcripts and auto-archiving
- Smart push notifications (suppressed when viewing)
- Mod panel with mute/kick/ban/warn actions
- Message cache for instant loading
- SQLite database with table partitioning
- Real-time session tracking and active user monitoring
- Interactive dashboard with charts (user growth, devices, features)
- JWT authentication with admin/mod access control
- REST API for metrics and session details
- Performance optimized (cached aggregates, indexed queries)
- ๐ Analytics Documentation
- 22 modular cogs with hot-reload
- API Server as loadable Cog (Port 5070)
- Rich logging (console + Discord channel)
- Smart caching with TTL
๐ Complete Documentation Index - Comprehensive guide to all documentation
- ๐ Features - Complete feature list & commands
- ๐ง Bot Setup Guide - Discord bot installation & configuration
- ๐ Requirements - Dependencies & system requirements
- โก Quick Start - Fast setup for development
- ๐๏ธ Architecture - Technical architecture & design patterns
- ๐ REST API Documentation - Complete API reference with examples
- ๐ Analytics System - Analytics dashboard & tracking system
- ๐ JWT Authentication Setup - Secure authentication guide
- ๐ฆ Analytics Deployment - Analytics deployment checklist
- ๐ฑ HazeBot Admin Panel - Flutter cross-platform app
- ๐ง Admin Panel Setup - Flutter app configuration
- ๐ Deployment Checklist - Production deployment guide
- ๐ NGINX Configuration - Web server setup
- โ๏ธ Cloudflare Tunnel - Secure tunnel setup
- ๐ค Contributing - Development guidelines & code style
- ๐ API with Bot - Running API alongside bot
- โก Performance Optimization - Speed improvements
- ๐๏ธ SQLite Migration Guide - Database migration
- ๐พ Session Cache Improvements - Caching strategies
- Python 3.11+ - Modern Python release
- discord.py 2.0+ - Discord API wrapper
- Flask 3.0+ - Web framework
- Discord Bot Token - From Discord Developer Portal
Optional: OpenAI API (AI formatting), FlareSolverr (Rocket League), SMTP (email transcripts)
Contributions are welcome! See docs/CONTRIBUTING.md for guidelines.
Quick Steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/name) - Make changes (follow
ruffcode style) - Test thoroughly
- Submit a Pull Request
MIT License - see LICENSE for details. Free to fork, modify, and use!
Built with ๐ for The Chillventory community
- Powered by discord.py
- AI features by OpenAI GPT
- Special thanks to all contributors
Questions? Open an issue on GitHub or check the documentation!
Made with ๐ for The Chillventory ๐ฟ