Bot::Cobalt::Plugin::Calc - Calculator plugin for Bot::Cobalt
# See Math::Calc::Parser -> !calc 2 + 2 !calc 0xff << 2 !calc int rand 5
A Bot::Cobalt calculator plugin using Math::Calc::Parser.
See the Math::Calc::Parser documentation for details on acceptable expressions.
This plugin uses a "safe-ish" forked worker to do the actual calculations, with resource limits in place to avoid denial-of-service attacks via large factorials and similar. Not all platforms support all relevant BSD::Resource rlimits, however, in which case it may be possible to force the bot to perform very large calculations.
Jon Portnoy <avenj@cobaltirc.org>
To install Bot::Cobalt::Plugin::Calc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Cobalt::Plugin::Calc
CPAN shell
perl -MCPAN -e shell install Bot::Cobalt::Plugin::Calc
For more information on module installation, please visit the detailed CPAN module installation guide.