Skip to content

Adding on_kick function #48

@Wibol

Description

@Wibol

This works for me in bot.py, IRCBot class:

    def on_kick(self, connection, event):
        """Join the correct channel again"""
        if irc.client.is_channel(self.__config.CHANNEL):
            time.sleep(31)
            connection.join(self.__config.CHANNEL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions