As a little side project I hacked together a Django and xmpppy based Jabber bot for Pownce. It’s implemented as a reusable Django app, using Django’s signal framework and database backend.
So, without further ado I present: pownce-jabber-bot
Please don’t hesitate to send feature requests, bug reports or become a project member!
See the Google Code project page for installation and setup instructions.
Currently available commands:
- help COMMAND […]
- message NOTE [RECEIVER]
- link URL [NOTE] [RECEIVER]
- register USERNAME PASSWORD
- unregister PASSWORD
comments
Nice! I missed this feature as there is no Pownce-Client for Linux.
Very cool stuff. I plan to dig into this soon.
Wow, that was fast! Nice job. I was wondering about sending Exception/qos... alerts to the admin via IM, when I did the trac-ticket django middleware. xmpppy might be a nice approach.
When I was writing similar libraries I found that the amount of code and the clarity of code was dramatically improved using the sleekxmpp library. That being said... it's got some shortcoming and needs some work (something I was hoping to get some traction on at pycon). Anyway take a look at it :)
@Christoph Thanks :)
@Anders Indeed, sleekxmpp looks sleek, though I don't know if changing powncebot's structure is worth the effort. But maby I just have to look at it a little longer.
The Pownce API 2.0 was released <a href="http://blog.pownce.com/2008/02/28/announcing-pownce-api-v20/" rel="nofollow">yesterday</a> including official support to post notes. But I think I'll wait a little for James' <a href="http://code.google.com/p/python-pownce-api/" rel="nofollow">python-pownce-api lib</a> to be updated before integrating it into powncebot.
So I installed your bot, and I really think it's great.
I've been trying to think of a cool feature to add, and then it hit me.
Pownce supports files.
So how about supporting a file transfer via the XMPP bot, which then relays the file up to the pownce. Sure it's round about, but it's a neat feature I think.
Thanks Rob, very good idea!
I need to have a more thorough look on the xmpppy lib that I used to build the bot. I think file transfer could be a weak spot of Jabber, since it's problematic on every other IM net.