def irc(): s = settings() NETWORK = s.Get("protected.irc_network") CHANNEL = s.Get("protected.irc_channel") f = botFactory(CHANNEL) reactor.connectTCP(NETWORK, 6667, f) reactor.run()
def __init__(self, channel, password=None): self.settings = settings() self.channel = channel self.password = password self.nickname = self.settings.Get("protected.bot_name")