tjbot-ce - v3.0.0
    Preparing search index...

    Class TJBotConfig

    TJBotConfig manages loading and parsing TJBot configuration from TOML files. It provides access to configuration via structured interfaces.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a TJBotConfig instance. Loads configuration in the following order:

      1. Default configuration from tjbot.default.toml
      2. User configuration from ~/.tjbot/tjbot.toml (if it exists)
      3. Override configuration (if provided)
      4. Recipe-specific configuration from recipe.toml (if it exists)
      5. Register user-defined models from [models] section

      Parameters

      • OptionaloverrideConfig: Partial<TJBotConfigSchema>

        Optional configuration object to overlay on top of loaded config

      • OptionalrecipeConfigPath: string

        Path to recipe configuration file (default: recipe.toml in current working directory)

      Returns TJBotConfig

    Properties

    hardware: HardwareConfig
    listen: ListenConfig
    recipe: Record<string, unknown>

    Methods

    • Get raw configuration value by path (for backward compatibility)

      Parameters

      • key: string

      Returns unknown