Links: Astrosim | m3g | Xploding Plastix | NS:CO | BiM | Modportal | Modservers | NLC | Linuxguiden
gtk.no Saturday 24 June, 2017   
    Geir T. Kristiansen's hideout

Bash2pod

What is it?

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.

Download

bash2pod-0.7.3.tar.gz (Tarball)

Last update: September 15 2009 09:50 PM

© 1999-2017

Menu

Info

Main
About Me

Scripts

Genmenu
Paralogger
Bash2pod
Bash2map

PHP

Yapircl
File_Tail
NSVE

Music

Ledlight District