Exemplo n.º 1
0
 def run(self):
     host, port = mmpprotocol.connection_endpoint()
     reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(self.configPath)))
     reactor.run()
Exemplo n.º 2
0
def startbot(configpath):
    host, port = mmpprotocol.connection_endpoint()
    reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(configpath)))
    reactor.run()