Bash2pod is an infobot for IRC that sits in a channel and listen for requests. It is written to somewhat emulate the behaviour of the notepod.tcl script for eggdrop. It is the most advanced bashbot I have seen but surely there must be others out there.
Why?
It's written in bash2 just because I wanted to know if it was possible to make an IRC infobot in bash.
Requirements
It will only work if bash2 is compiled with "../configure --enable-net-redirections". You don't have to "make install", just copy the compiled bash2 binary to the Bash2pod directory.
On RedHat 7.2 bash2 is already compiled with net redirections enabled so you can just change the shebang on top of the "bash2pod" script to "#!/bin/bash". and it should work.
Commands
Commands the bot will answer (in a channel or privmsg):
?? definition [to nick]
!! definition (wildcards like * and ? can be used)
!learn definition
!forget definition
!whoset definition
!say something
!me something
!status
!start
!stop
!harakiri
The bot also responds to ping and version.
Stability
The bot has been in daily use for about 7 months and has proved to be quite stable. The record uptime so far is about 20 days. However, note that bash2 is slow (and probably the code too *grin*) and that the bot will be slow with 7000+ records especially on a slow computer.
Notes
That's it. This code will not be maintained, so please go ahead and fork it, but note that you are on your own with this.