Mozbot

Mozbot is the IRC bot maintained by the Mozila Project.  For the Mozilla Project the codebase served purposes including RSS Aggregator, Bugzilla Tracker, Fortune Cookie Dispenser, and Channel Monitor.  The original website for Mozbot is here.  This page is for modules I have written to extend the functionality of mozbot.

Roll.bm

This module adds dicerolling and coin flipping support to MozBot. The module has as a requirement the Math::Random::MT module from CPAN. This is to provide a better PRNG than the typical rand(), however, if you comment out the
use Math::Random::MT;
line, then it will use the included version of rand().

The module is based on the work Thomas Castiglione did on an IRC bot of his own design. The code for dice rolling is still covered under his BSD-Like License, which is maintained at the beginning of Roll.bm. A description of the dice rolling mechanic can be found here.

Finally, it should be noted that currently, the error messages are not child friendly. The channel this bot was created for is adult, and curse words were used in error messages. I'm in the process of modifying this distributable source code to provide error messages that are more useful, and family-friendly.