The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bot::IRC::Math - Bot::IRC evaluate math expressions and return results

VERSION

version 1.19

SYNOPSIS

    use Bot::IRC;

    Bot::IRC->new(
        connect => { server => 'irc.perl.org' },
        plugins => ['Math'],
    )->run;

DESCRIPTION

This Bot::IRC plugin gives the bot the capability to evaluate math expressions and return the results.

See Math::Expression for details. Message text is evaluated with Parse and EvalToScalar from Math::Expression. If there's a value generated, the bot replies with the value.

SEE ALSO

Bot::IRC

AUTHOR

Gryphon Shafer <gryphon@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gryphon Shafer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.