Skip to content

Instantly share code, notes, and snippets.

@legastero
Created June 17, 2010 14:25
Show Gist options
  • Save legastero/442194 to your computer and use it in GitHub Desktop.
Save legastero/442194 to your computer and use it in GitHub Desktop.
Handle Presence Probe
# 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