Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A stupidly simple beanstalk -> xmpp gateway to connect various services to IM.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.markdown
Octocat-spinner-32 beanstalk-xmpp.conf.sample
Octocat-spinner-32 beanstalk-xmpp.tac
README.markdown

A Stupidly Simple Beanstalk -> Jabber Gateway

I've got various things that run that are written in various languages. Some of those languages don't have XMPP libraries available (or at least, easy to use ones), but most have a beanstalk interface. The ones that don't can have one very easily.

This bot sits on a beanstalk tube and waits for simple messages to arrive and follows their instructions. The message structure is excessively simple.

Messages will not be delivered if the user is offline, or the user's status is set to dnd (do not disturb).

Message Structure

[recipient] [various text]

recipient may be either status to update the bot's status, or an arbitrary group name. Anyone who's on the bot's roster will receive the message unless they've specifically ignored it.

The remaining text is what gets set as the status or delivered.

Examples

Setting the Bot's Status

status Look, I have a new status now.

Sending an IM

problem Holy crap, something just went wrong.
Something went wrong with that request. Please try again.