INNER CODE UNIT · Python
__init__
opsdroid/opsdroid · opsdroid/connector/__init__.py:87
def __init__(self, config, opsdroid=None):
"""Create the connector.
Set some basic properties from the connector config such as the name
of this connector and the name the bot should appear with in chat
service.
Args:
config (dict): The config for this connector specified in the
`configuration.yaml` file.
opsdroid (OpsDroid): An instance of opsdroid.core.
"""
self.name = ""
self.config = config
self.default_target = None
self.opsdroid = opsdroid