Bot::BasicBot::Pluggable
01 January 2000
in code
tagged with
[irc]
[perl]
Bot::BasicBot::Pluggable is a framework for writing IRC bots, based on Bot::BasicBot. It hides all the annoyance of having to deal with the IRC protocol, and lets you write small, self-contained modules that perform specific tasks.
Modules get called when the bot sees something on channel, they can optionally return something to say in response to this, and that’s essentially all there is to writing a module.
The distribution comes with a heap of modules that do the things you’d expect from an Infobot: factoids, karma, seen tracking, that sort of thing. It doesn’t emulate an infobot perfectly, but then I disagree with a lot of the things that the infobot does, and it’s my code, damnit. There’s an example script that runs the bot, and that I use myself to run mindbot, the channel bot for the #2lmc channel.
The best place to get the code is CPAN. Alternatively, the code is in my subversion repository for people wanting to see the cutting-edge development…