Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raku/evalbot

IRC bot for executing Raku code
https://github.com/raku/evalbot

raku

Last synced: 3 months ago
JSON representation

IRC bot for executing Raku code

Awesome Lists containing this project

README

        

This is an IRC bot, which is designed to execute Raku commands from IRC, and
echo the output on IRC again.
Currently it runs as nick "camelia" on freenode, in #raku and other channels.

Might also work for other languages :-)

To add a new execution target, conduct the following steps:

* build it on the server
* write a script that updates the repo and rebuilds. Store it in the evalbot
repo under build-scripts/rebuild-.sh or .pl
* add a cron job for regular rebuilding (crontab -e)
* add the target to %impls in evalbot.pl
* push everything
* pull on the server
* restart evalbot
* PROFIT

The Rakudo Star releases aren't automatically built. To update to a new
release, conduct the following steps:

* log in as the user that runs the evalbot
* download the rakudo-star-YYYY.MM.tar.gz tarball
* unpack, build install:

tar xzf rakudo-star-YYYY.MM.tar.gz
cd rakudo-star-YYYY-MM
perl Configure.pl --backends=all --gen-moar && make && make install
echo YYYY.MM > install/version
cd ..

* symlink to star:

rm star; ln -s rakudo-star-YYYY.MM/install