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)
- 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
- /email@example.com : send a jabber message to firstname.lastname@example.org
public commands :
/email@example.com : return user firstname.lastname@example.org status as json
/email@example.com : display online image if this user online
/firstname.lastname@example.org,email@example.com : 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)
- Julien Bouquillon (revolunet) firstname.lastname@example.org