コード例 #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()