INNER CODE UNIT · Python

disconnect

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

    async def disconnect(self):
        """Disconnect from the chat service.

        This method is called when opsdroid is exiting, it can be used to close
        connections or do other cleanup.
        """

    async def react(self, message, emoji):
        """React to a message.

        Not all connectors will have capabilities to react messages, so this
        method don't have to be implemented and by default logs a debug message
        and returns False.

        Args:
            message (Message): A message received by the connector.
            emoji    (string): The emoji name with which opsdroid will react

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…