One day whilst trawling the web I found a project called
PHPTocLib - a PHP class that connects to AOL's open TOC protocol for AIM. I don't quite remember what went through my head after that, but I somehow got the notion to make an AIM answering machine type bot. So in the period of the next 4 days (i.e. Thanksgiving break) , I accomplished the majority of the features:
- Automatically reply with an away message to any incoming IM
- Select a random away message from a list or use a default (boring :p) message
- Have personal messages inserted into away messages, so the rest of the world doesn't have to see what you only want to tell one person
- Something else I forget :p
There's basically 2 known bugs:
- Does not mark the user as away at all. The code is there, but it doesn't seem to work. I find this to be an advantage, as the TOC protocol has no way to specify different messages for the server to send to the client, only for the client to send to other clients. That's how the randomizer and personal messages can work.
- Logs are basically the raw client<->server data.
Although iceAwayBot is written in PHP, it has to be run from the command line. I may add a web interface at some point.
http://niteice.hopto.org/~ice/iceAwayBot-0.9.6a.tar.gz