예제 #1
0
파일: talk.py 프로젝트: michaeldove/abode
 def reply_message(self, message, body):
     """
     Reply to message with body.
     """
     response = Message(recipient=message.sender,
                        sender=message.recipient,
                        body=body)
     response.stanzaType = 'chat'
     self.send(response.toElement())
예제 #2
0
파일: talk.py 프로젝트: michaeldove/abode
 def on_hello(self, message):
     response = Message(recipient=message.sender,
                        sender=message.recipient,
                        body="Hi I'm the backyard irrigation controller.")
     response.stanzaType = 'chat'
     self.send(response.toElement())