Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revolunet/jabber-presencebot
simple python/jabber bot that tracks users presence
https://github.com/revolunet/jabber-presencebot
Last synced: about 2 months ago
JSON representation
simple python/jabber bot that tracks users presence
- Host: GitHub
- URL: https://github.com/revolunet/jabber-presencebot
- Owner: revolunet
- Created: 2010-07-09T16:36:34.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-16T23:10:55.000Z (over 12 years ago)
- Last Synced: 2024-10-03T19:43:17.100Z (2 months ago)
- Language: Python
- Homepage: http://status.revolunet.com
- Size: 142 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jabber-presencebot
==================A simple Python/Jabber BOT that tracks online user presence.
Users add the bot to their roster and their status are then tracked.
The bot offers an http/json interface to query user statuses. results are JSON or images.
There is also a JS API to display your team jabber status and redirect users accordingly.
You can also use client.py on remote servers to track their status (add this script to your @reboot cron command)
**usage :**
- edit settings.py
- python ./statusbot.py
**server admin commands :**
*theses commands need the pwd GET parameter (set in config)*
- /users : return the full roster with user status as json
- /send?msg=blabla%20blabla&[email protected] : send a jabber message to [email protected]**public commands :**
- /status/[email protected] : return user [email protected] status as json
- /status/[email protected],[email protected],[email protected] : return 'online' status as json
- /imgstatus/[email protected] : display online image if this user online
- /imgstatus/[email protected],[email protected] : display online image if one of this user online
- the 'imgstatus' command takes two optional params : on and off which are the online and offline image which will be displayed instead of the default.
- Json commands have a 'callback' optional parameters that you can use to cross-domain include this result in your applications. (remote script include)
**dependencies :*** [xmpppy][1]
* python-simplejson
**authors**
* Julien Bouquillon (revolunet) [email protected]
[1]: http://xmpppy.sourceforge.net/
[2]: http://status.revolunet.com