Evalbot
This is a small IRC bot using Net::IRC to eval() commands.
Net::IRC
eval()
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.
evalbot.p6
evalhelper.p5
PUGS_SAFEMODE
STDOUT
STDERR
pugs
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.
Ingo Blechschmidt, <iblech@web.de>
<iblech@web.de>
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.