Written January 12, 2004
Genericbot is a generic framework for an IRC bot, written in Perl. It only depends on one module: IO::Socket::INET, which should be a standard module in a modern Perl distribution.
Genericbot will, in its current form, join channel #test on irc.foo.com (which may or may not actually exist), and sit there. If anyone addresses it directly or /msgs it, it will respond with a simple sentence. If the connection is dropped for any reason, genericbot will re-join the channel after a timeout period.
Genericbot is intended to be used as the basis for bots that actually do interesting things, like shorten URLs, or look up search terms on google.com, etc. It should provide enough functionality that all you need to do is add the interesting stuff, and it should Just Work.
Genericbot does the following interesting things:
Added December 19, 2006
Urlbot is a project started ages ago (initial coding date unknown), with the goal of automatically shortening long URLs pasted into an IRC session. This is particularly useful for people running terminal-based IRC clients, which wrap the URLs, usually making them impossible to copy and paste.
I first became aware of it around 2005, when it became clear that it would make a good test case for building a real-world bot out of genericbot. I have finally explored it, and come up with a perfectly functional system.
This version of urlbot is based on genericbot, with modifications and additions taken from the old urlbot code. In general, code snippets were used rather than huge chunks of code. This version is definitely a modified genericbot, and not a modified urlbot.
This urlbot retains all the features of genericbot, as listed above. It also adds:
Created by Ian Johnston. Questions? Please mail me at reaper at obairlann dot net.