INNER CODE UNIT · Python

_unknown_event

opsdroid/opsdroid · opsdroid/connector/__init__.py:133

    async def _unknown_event(self, event, target=None):
        """Fallback for when the subclass can not handle the event type."""
        raise TypeError(
            "Connector {stype} can not handle the"
            " '{eventt.__name__}' event type.".format(
                stype=type(self), eventt=type(event)
            )
        )

    async def respond(self, message, room=None):
        """Send a message back to the chat service.

        The message object will have a `text` property which should be sent
        back to the chat service. It may also have a `room` and `user` property
        which gives information on where the message should be directed.

        Args:
            message (Message): A message received by the connector.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…