예제 #1
0
파일: mmpbot.py 프로젝트: AlexSnet/johann
 def run(self):
     host, port = mmpprotocol.connection_endpoint()
     reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(self.configPath)))
     reactor.run()
예제 #2
0
파일: mmpbot.py 프로젝트: smirn0v/mmp-bot
def startbot(configpath):
    host, port = mmpprotocol.connection_endpoint()
    reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(configpath)))
    reactor.run()