llimllib / limbo

A simple, clean, easy to modify Slack chatbot
MIT License
402 stars 160 forks source link

Add config loader from config file #146

Open eSoares opened 6 years ago

eSoares commented 6 years ago

With this config we load configuration variables from a config file and from the environment. If a variable is present in both (config and env) the env variable is used. This makes easy to quick change a particular variable between restarts (the debug level e.g.).

eSoares commented 6 years ago

Just to add to the idea of loading tokens/vars from a config file. Each plugin could have it's own section with their parameters, something like:

.....
[plugin_weather]
token = ....
default_city = ...