Skip to content

A feature-rich Discord bot with modular architecture and modern web interface ๐ŸŒŸ

License

Notifications You must be signed in to change notification settings

inventory69/HazeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

480 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HazeBot ๐ŸŒฟ

A feature-rich Discord bot with modular architecture and modern web interface

Python Discord.py Flask License

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.

โœจ Key Features

  • ๐ŸŽฎ 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

๐Ÿ“– View Full Feature List


๐Ÿš€ Quick Start

Option 1: Bot Only (Recommended for Testing)

# 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

Option 2: Bot + API Server (Production with Admin Panel)

# 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.py

Note: 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


๐Ÿ“ฆ What's Included

๐ŸŽฎ Gaming Integration

  • Rocket League - Stats, rank tracking, auto rank-up notifications
  • Warframe - Market prices, item search, live alerts/fissures/invasions

๐ŸŽญ Meme System

  • Automated daily posting from Reddit/Lemmy
  • Custom generator with 100+ Imgflip templates
  • Interactive creation with GUI configuration

๐ŸŽซ Support & Moderation

  • 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

๐Ÿ“Š Analytics System

  • 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

๐Ÿ› ๏ธ Bot Management

  • 22 modular cogs with hot-reload
  • API Server as loadable Cog (Port 5070)
  • Rich logging (console + Discord channel)
  • Smart caching with TTL

๐Ÿ“š Documentation

๐Ÿ“‹ Complete Documentation Index - Comprehensive guide to all documentation

๐Ÿš€ Getting Started

  • ๐Ÿ“– Features - Complete feature list & commands
  • ๐Ÿ”ง Bot Setup Guide - Discord bot installation & configuration
  • ๐Ÿ“‹ Requirements - Dependencies & system requirements
  • โšก Quick Start - Fast setup for development

๐Ÿ—๏ธ System Architecture

๐Ÿ” Authentication & Security

๐Ÿ“ฑ Client Applications

๐Ÿšข Deployment & Operations

๐Ÿ”ง Development

๐Ÿ“Š Performance & Optimization


๐Ÿ”ง Requirements

  • 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)

๐Ÿ“‹ Full Requirements List


๐Ÿค Contributing

Contributions are welcome! See docs/CONTRIBUTING.md for guidelines.

Quick Steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/name)
  3. Make changes (follow ruff code style)
  4. Test thoroughly
  5. Submit a Pull Request

๐Ÿ“„ License

MIT License - see LICENSE for details. Free to fork, modify, and use!


๐Ÿ™ Acknowledgments

Built with ๐Ÿ’– for The Chillventory community

Questions? Open an issue on GitHub or check the documentation!

Made with ๐Ÿ’– for The Chillventory ๐ŸŒฟ

About

A feature-rich Discord bot with modular architecture and modern web interface ๐ŸŒŸ

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •