errbot.bootstrap module

errbot.bootstrap.bootstrap(bot_class, logger, config, restore=None)[source]

Main starting point of Errbot.

Parameters:
  • bot_class – The backend class inheriting from Errbot you want to start.
  • logger – The logger you want to use.
  • config – The config.py module.
  • restore – Start Errbot in restore mode (from a backup).
errbot.bootstrap.bot_config_defaults(config)[source]
errbot.bootstrap.get_storage_plugin(config)[source]

Find and load the storage plugin :param config: the bot configuration. :return: the storage plugin

errbot.bootstrap.restore_bot_from_backup(backup_filename, *, bot, log)[source]

Restores the given bot by executing the ‘backup’ script.

The backup file is a python script which manually execute a series of commands on the bot to restore it to its previous state.

Parameters:
  • backup_filename – the full path to the backup script.
  • bot – the bot instance to restore
  • log – logger to use during the restoration process
errbot.bootstrap.setup_bot(backend_name: str, logger, config, restore=None) → errbot.core.ErrBot[source]