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

Method sendChat

syncplay/client.py:973–980  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

971
972 @requireServerFeature("chat")
973 def sendChat(self, message):
974 if self._protocol and self._protocol.logged:
975 try:
976 message = message.replace("\n", "").replace("\r", "")
977 except:
978 pass
979 message = utils.truncateText(message, constants.MAX_CHAT_MESSAGE_LENGTH)
980 self._protocol.sendChatMessage(message)
981
982 @requireServerFeature("setOthersReadiness")
983 def setOthersReadiness(self, username, newReadyStatus):

Callers

nothing calls this directly

Calls 1

sendChatMessageMethod · 0.45

Tested by

no test coverage detected