Funkbot-ng is a project mainly written in PERL and C, it's free.
Funkbot
This is the source code for "mozbot", the IRC bot who hangs out in the