Simple Jabber Bot
March 28, 2008 – 3:17 pmI needed a simple Jabber bot for a work project a while back. All it had to do was monitor a file on disk and use the contents of the file to generate Jabber messages.
So basically, you can write:
JID&&MESSAGE&&\n
... to a file and the bot will send MESSAGE to JID. I use this a lot in back end software that users don't really interact with, but still need status updates and the like.
Here is my quick and dirty Perl implementation.
Features:
- Can get messages from multiple source files.
- Weather report shows in the bot's status.
- Current news headlines show in the bot's status

Sorry, comments for this entry are closed at this time.