Skip to content

Adding IRC nick login support #49

@Wibol

Description

@Wibol

This works for me:

Added to config.py, Config class:
self.NICKPASS = ""

Changed on_welcome function in bot.py, IRCBot class to:

    def on_welcome(self, connection, event):
        """Login"""
        if self.__config.NICKPASS:
            self.connection.privmsg("NickServ", "IDENTIFY {}".format(self.__config.NICKPASS))
        """Join the correct channel upon connecting"""
        if irc.client.is_channel(self.__config.CHANNEL):
            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