I see the way it's done in cli.py
but it's not set up as a utility for plugin code to make use of.
From http://errbot.io/en/latest/user_guide/plugin_development/configuration.html :
Errbot can keep a simple python object for the configuration of your plugin. This avoids the need for admins to configure settings in some kind of configuration file, instead allowing configuration to happen directly through chat commands.
But, I like config files! I prefer to use them for some things if possible.
Sure, the config.py
module is exposed as self.bot_config
in the plugins.
There are 2 caveats doing that:
!repos install
, people will need to stop the bot too.As an alternative, if you want to make a setup script, you can use the provisioning cli.