Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Tuesday July 02, 2002
09:45 AM

More IRC Bots

[ #6126 ]

I've written a subclass of POE::Component::IRC::Object (which is now on CPAN), called Bot::Pluggable (which is now also on CPAN). Basically it allows you to have a base "bot", and register different plugin modules or objects with the bot. Each time the bot sees an event it checks to see if any of the modules/objects can handle them, and if so, passes control to that plugin. If a plugin returns a true value, then it won't continue through other plugins (kind of like returning OK from a mod_perl handler), but it you return 0, it continues and lets other plugins see that event (same as returning DECLINED).

Should make bot authoring a little simpler, IMHO.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.