def sendChatString(self, message):
     chatFlags = CFSpeech | CFTimeout
     if ChatUtil.isThought(message):
         message = ChatUtil.removeThoughtPrefix(message)
         chatFlags = CFThought
     messenger.send(NormalChatEvent)
     self.announceChat()
Example #2
0
 def sendChatString(self, message):
     chatFlags = CFSpeech | CFTimeout
     if ChatUtil.isThought(message):
         message = ChatUtil.removeThoughtPrefix(message)
         chatFlags = CFThought
     messenger.send(NormalChatEvent)
     self.announceChat()
 def sendOpenTalk(self, message):
     if len(message) > 0 and message[0] == '~':
         messenger.send('magicWord', [message])
     else:
         chatFlags = CFSpeech | CFTimeout
         if ChatUtil.isThought(message):
             chatFlags = CFThought
         base.cr.chatAgent.sendChatMessage(message)
         messenger.send('chatUpdate', [message, chatFlags])
 def sendOpenTalk(self, message):
     if len(message) > 0 and message[0] == "~":
         messenger.send("magicWord", [message])
     else:
         chatFlags = CFSpeech | CFTimeout
         if ChatUtil.isThought(message):
             chatFlags = CFThought
         base.cr.chatAgent.sendChatMessage(message)
         messenger.send("chatUpdate", [message, chatFlags])
 def sendOpenTalk(self, message):
     if len(message) > 0 and message[0] == '~':
         messenger.send('magicWord', [message])
     else:
         chatFlags = CFSpeech | CFTimeout
         if ChatUtil.isThought(message):
             chatFlags = CFThought
         base.cr.chatAgent.sendChatMessage(message)
         messenger.send('chatUpdate', [message, chatFlags])
     try:
         message.encode('ascii')
     except UnicodeEncodeError:
         return
 def sendOpenTalk(self, message):
     if len(message) > 0 and message[0] == '~':
         messenger.send('magicWord', [message])
     else:
         chatFlags = CFSpeech | CFTimeout
         if ChatUtil.isThought(message):
             chatFlags = CFThought
         base.cr.chatAgent.sendChatMessage(message)
         messenger.send('chatUpdate', [message, chatFlags])
     try:
         message.encode('ascii')
     except UnicodeEncodeError:
         return