INNER CODE UNIT · Python

__init__

GHJJ123/brainrotguard · main.py:32

    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(
            "default", "Default", pin=pin,
            icon=random.choice(AVATAR_ICONS), color=random.choice(AVATAR_COLORS),
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…