The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Evalbot

DESCRIPTION

This is a small IRC bot using Net::IRC to eval() commands.

ARCHITECTURE

evalbot.p6 is the main bot, written in Perl 6. To run a command, it spawns evalhelper.p5, a Perl 5 program. This sets up the necessary environment (PUGS_SAFEMODE, redirection of STDOUT and STDERR to a temporary file, resource limits, etc.). Finnaly, evalhelper.p5 runs pugs.

INSTALLATION

There's no installation, simply run evalbot.p6 supplying a nick and an IRC server to connect to:

    $ pugs evalbot.p6 evalbot6 irc.freenode.net:6667

You don't have to restart evalbot.p6 when you've installed a new Pugs, as a new pugs is spawned on each command to eval.

AUTHOR

Ingo Blechschmidt, <iblech@web.de>