So, the past few nights I've been working on a little IRC bot which can do various things. I'm using the PircBot framework and so far, it's really been easy to create some cool stuff.
The framework is all event-driven so in my Bot class, I can override the methods will deal with receiving messages, private message, people joining, etc. So far, the bot can do a Google search using the APIs and some little things like telling the time and giving the status on various things.
One fairly interesting thing I'm doing in it is having a sort of TODO list management over IRC. You can tell the bot to add certain things to your list and it will keep track of them. Currently, it's just a big HashMap which writes itself out to a file when the bot is disconnected. On connection, it reads that file and repopulates itself so there is very primitive persistence.
Right now, I have some hard-coded stuff in there but I'm hoping to clean that up tonight or tomorrow and release the code, just to see if anyone is interested.
For whatever reason, bots are on my mind right now. I'm hoping to work on an AIM one next.
Posted by Josh at May 31, 2003 12:44 PM | TrackBack