예제 #1
0
파일: irc.py 프로젝트: bluemoon/Godel
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()
예제 #2
0
파일: irc.py 프로젝트: bluemoon/Godel
 def __init__(self, channel, password=None):
     self.settings = settings()
     self.channel = channel
     self.password = password
     self.nickname = self.settings.Get("protected.bot_name")