NAME

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

VERSION

version 1.35

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) 2016-2021 by Gryphon Shafer.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)