MCPcopy Create free account
hub / github.com/a943512/PyAibote / execute

Method execute

PyAibote/DigitalHumanBot.py:55–72  ·  view source on GitHub ↗
(self, IP: str, Port: int, Debug: bool = True, Qt = None, WebsocketSwitch = False, WebsocketPort = 8888)

Source from the content-addressed store, hash-verified

53
54 @classmethod
55 def execute(self, IP: str, Port: int, Debug: bool = True, Qt = None, WebsocketSwitch = False, WebsocketPort = 8888):
56 try:
57 if Port < 0 or Port > 65535:
58 raise OSError("`listen_port` must be in 0-65535.")
59
60 if Qt:
61 self.Qt = Qt
62
63 if Debug:
64 Driver.DigtalHumanDriverStart(IP, Port)
65
66 if WebsocketSwitch:
67 server = WebSocketServerThread(IP, WebsocketPort, self.Websocket_Log_Level)
68 server.start()
69
70 ThreadingTCPServer.StartThreadingTCPServer(self, IP, Port)
71 except KeyboardInterrupt as e:
72 sys.exit(self)
73
74 @classmethod
75 def StopSrver(self):

Callers

nothing calls this directly

Calls 3

Tested by

no test coverage detected