Bot::Cobalt::Plugin::Calc - Calculator plugin for Bot::Cobalt
# See Math::Calc::Parser -> !calc 2 + 2 !calc 0xff << 2 !calc int rand 5
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 <email@example.com>