You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Probably should have Halibot class manage config loading/writing. That way it can keep it up-to-date automatically for interactively adding/removing modules and agents. Perhaps automatically write the config out on exit.
The
config.json
is opened in more than one spot inmain.py
, including one case where aHalibot
class is instantiated just to call_load_config()
.This should all be factored out into aload_config()
function inmain.py
, and_load_config()
on theHalibot
class should take in a dictionary as an argument instead.Writes toconfig.json
inmain.py
should stay as they are, probably.There should be some kind of more-centralized configuration loading system, so
main.py
andHalibot
use the same interface for loading/writing a config file.The text was updated successfully, but these errors were encountered: