errbot.core_plugins.plugins module¶
-
class
errbot.core_plugins.plugins.
Plugins
(bot, name=None)[source]¶ Bases:
errbot.botplugin.BotPlugin
-
formatted_plugin_list
(active_only=True)[source]¶ Return a formatted, plain-text list of loaded plugins.
When active_only=True, this will only return plugins which are actually active. Otherwise, it will also include inactive (blacklisted) plugins.
-
plugin_blacklist
(_, args)[source]¶ Blacklist a plugin so that it will not be loaded automatically during bot startup. If the plugin is currently activated, it will deactiveate it first.
-
plugin_config
(_, args)[source]¶ configure or get the configuration / configuration template for a specific plugin ie. !plugin config ExampleBot could return a template if it is not configured: {‘LOGIN’: ‘example@example.com’, ‘PASSWORD’: ‘password’, ‘DIRECTORY’: ‘/toto’} Copy paste, adapt so can configure the plugin : !plugin config ExampleBot {‘LOGIN’: ‘my@email.com’, ‘PASSWORD’: ‘myrealpassword’, ‘DIRECTORY’: ‘/tmp’} It will then reload the plugin with this config. You can at any moment retrieve the current values: !plugin config ExampleBot should return : {‘LOGIN’: ‘my@email.com’, ‘PASSWORD’: ‘myrealpassword’, ‘DIRECTORY’: ‘/tmp’}
-
plugin_reload
(_, args)[source]¶ reload a plugin: reload the code of the plugin leaving the activation status intact.
-
repos_install
(_, args)[source]¶ install a plugin repository from the given source or a known public repo (see !repos to find those). for example from a known repo : !install err-codebot for example a git url : git@github.com:gbin/plugin.git or an url towards a tar.gz archive : http://www.gootz.net/plugin-latest.tar.gz
-