MCPcopy Create free account
hub / github.com/Syncplay/syncplay / sendChatMessage

Method sendChatMessage

syncplay/ui/gui.py:1432–1443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1430 self.console.executeCommand(command)
1431
1432 def sendChatMessage(self):
1433 chatText = self.chatInput.text()
1434 self.chatInput.setText("")
1435 if chatText != "":
1436 if chatText[:1] == "/" and chatText != "/":
1437 command = chatText[1:]
1438 if command and command[:1] == "/":
1439 chatText = chatText[1:]
1440 else:
1441 self.executeCommand(command)
1442 return
1443 self._syncplayClient.sendChat(chatText)
1444
1445 def addTopLayout(self, window):
1446 window.topSplit = self.topSplitter(Qt.Horizontal, self)

Callers

nothing calls this directly

Calls 2

executeCommandMethod · 0.95
sendChatMethod · 0.45

Tested by

no test coverage detected