Created
June 17, 2010 14:25
-
-
Save legastero/442194 to your computer and use it in GitHub Desktop.
Handle Presence Probe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Where self is a SleekXMPP object: | |
# self.add_event_handler('presence_probe', handle_probe) | |
def handle_probe(self, presence): | |
sender = presence['from'] | |
# Populate the presence reply with the agent's current status. | |
self.sendPresence(pto=sender, pstatus="Busy studying XMPP", pshow="dnd") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment