Skip to content

Reform configuration loading in main.py #57

@richteer

Description

@richteer

The config.json is opened in more than one spot in main.py, including one case where a Halibot class is instantiated just to call _load_config().

This should all be factored out into a load_config() function in main.py, and _load_config() on the Halibot class should take in a dictionary as an argument instead.

Writes to config.json in main.py should stay as they are, probably.

There should be some kind of more-centralized configuration loading system, so main.py and Halibot use the same interface for loading/writing a config file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions