def run(self): host, port = mmpprotocol.connection_endpoint() reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(self.configPath))) reactor.run()
def startbot(configpath): host, port = mmpprotocol.connection_endpoint() reactor.connectTCP(host, port, mmpprotocol.MMPClientFactory(MMPBot(configpath))) reactor.run()