#!/usr/bin/env python3 """ PetBot Configuration Central configuration file for admin users and other settings """ # ============================================================================= # ADMIN CONFIGURATION - Edit this to change the admin user # ============================================================================= ADMIN_USER = "megasconed" # The single admin user who can run admin commands # ============================================================================= # IRC Configuration IRC_CONFIG = { "server": "irc.libera.chat", "port": 6667, "nickname": "PetBot", "channel": "#petz", "command_prefix": "!" } # Web Server Configuration WEB_CONFIG = { "port": 8080, "host": "localhost" } # Rate Limiting Configuration RATE_LIMIT_CONFIG = { "enabled": True, "admin_users": [ADMIN_USER], # Uses the admin user from above "categories": { "basic": { "requests_per_minute": 20, "burst_capacity": 5, "cooldown_seconds": 1 }, "gameplay": { "requests_per_minute": 10, "burst_capacity": 3, "cooldown_seconds": 3 }, "management": { "requests_per_minute": 5, "burst_capacity": 2, "cooldown_seconds": 5 }, "admin": { "requests_per_minute": 100, "burst_capacity": 10, "cooldown_seconds": 0 }, "web": { "requests_per_minute": 60, "burst_capacity": 10, "cooldown_seconds": 1 } }, "global_limits": { "max_requests_per_minute": 200, "max_concurrent_users": 100 }, "violation_penalties": { "warning_threshold": 3, "temporary_ban_threshold": 10, "temporary_ban_duration": 300 # 5 minutes } }