The bot for you!
BOTME2 is a remote event-driven framework for building bots that talk JSON to each other over XMPP. IRC/Console/XMPP (shell) Wave/Web/XMPP (GAE) implementations provided.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.