Convos::Plugin::Bot::Action::Calc - Compute mathematical expressions
SYNOPSIS
Prerequisites
You need to install Math::Calc::Parser to use this action:
./script/convos cpanm -n Math::Calc::Parser
Commands
calc <expression>
Will pass "expression> to Math::Calc::Parser which will try to generate a response.
Config file
---
actions:
- class: Convos::Plugin::Bot::Action::Calc
DESCRIPTION
Convos::Plugin::Bot::Action::Core allows Convos::Plugin::Bot to compute math expressions.
ATTRIBUTES
description
See "description" in Convos::Plugin::Bot::Action.
usage
See "usage" in Convos::Plugin::Bot::Action.
METHODS
register
Loads Math::Calc::Parser.
reply
Can reply to one of the "Commands".