def sendChatString(self, message):
     chatFlags = CFSpeech | CFTimeout
     if ChatUtil.isThought(message):
         message = ChatUtil.removeThoughtPrefix(message)
         chatFlags = CFThought
     messenger.send(NormalChatEvent)
     self.announceChat()
Ejemplo n.º 2
0
 def sendChatString(self, message):
     chatFlags = CFSpeech | CFTimeout
     if ChatUtil.isThought(message):
         message = ChatUtil.removeThoughtPrefix(message)
         chatFlags = CFThought
     messenger.send(NormalChatEvent)
     self.announceChat()
Ejemplo n.º 3
0
 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])
Ejemplo n.º 4
0
 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
Ejemplo n.º 6
0
 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