You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was pointed by @igorfcardoso on #1417 that the documentation seems to be outdated. We should fix the documentation on Creating a custom connector - link
On this page there is a few things that we need to update:
The first header is broken: #### connect connect is a method which connects to a specific chat service
our example connector class should be updated following the base connector class (which you can find on opsdroid.connector.init.py
For example the __init__ method of the connector class in the documentation should be updated from:
classMyConnector(Connector):
def__init__(self, config):
# Init the config for the connectorself.name="MyConnector"# The name of your connectorself.config=config# The config dictionary to be accessed laterself.default_target="MyDefaultRoom"# The default room for messages to go
to
classMyConnector(Connector):
def__init__(self, config, opsdroid):
# Init the config for the connectorself.name="MyConnector"# The name of your connectorself.config=config# The config dictionary to be accessed laterself.default_target="MyDefaultRoom"# The default room for messages to go
Hope this will give you a good idea what needs to be done. If you need any help fixing this issue please reach out to us on matrix 😄 👍
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It was pointed by @igorfcardoso on #1417 that the documentation seems to be outdated. We should fix the documentation on
Creating a custom connector
- linkOn this page there is a few things that we need to update:
The first header is broken:
#### connect connect is a method which connects to a specific chat service
our example connector class should be updated following the base connector class (which you can find on opsdroid.connector.init.py
For example the
__init__
method of the connector class in the documentation should be updated from:to
Hope this will give you a good idea what needs to be done. If you need any help fixing this issue please reach out to us on matrix 😄 👍
The text was updated successfully, but these errors were encountered: