|
From: Thierry M. <th...@ma...> - 2000-11-05 18:02:45
|
Greetings, I was thinking a little about how to give some life to our bot. My proposal : - add a listener to the bot module, which will receive message for the irc functions (probably the switch function) indicating that there is some data to treat - in the irc:switch function, the Bot, Header, and Data should be passed to that bot function with a message (!) - the bot will then treat as we wish the data. For a start, just dumping it with io:format would be ok - later on, parse the header in order to get what is it about ? as an exercice, we could make a hook for the KICK flag, and make Manderlbot reconnect itself after 2 secondes, and say "Hey!!!" on the channel Is this ok with you Mickael ? --=20 Thierry Mallard | =20 GnuPG key on wwwkeys.pgp.net | key 0xA3D021CB | http://thierry.mallard.com | =20 |