Exemplo n.º 1
0
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()
Exemplo n.º 2
0
 def __init__(self, channel, password=None):
     self.settings = settings()
     self.channel = channel
     self.password = password
     self.nickname = self.settings.Get("protected.bot_name")