INNER CODE UNIT · Python
BrainRotGuard
GHJJ123/brainrotguard · main.py:29
class BrainRotGuard:
"""Main orchestrator - runs FastAPI + Telegram bot."""
def __init__(self, config: Config):
self.config = config
self.video_store = None
self.bot = None
self.running = False
def _bootstrap_profiles(self) -> None:
"""Ensure at least one profile exists. Auto-creates 'default' on first run."""
profiles = self.video_store.get_profiles()
if profiles:
return # Profiles already exist
from web.helpers import AVATAR_ICONS, AVATAR_COLORS
pin = self.config.web.pin if self.config.web else ""
self.video_store.create_profile(