Calculator module for WildPHP, allowing calculation of expressions from IRC and Telegram.
If your setup can run the main bot, it can run this module as well.
To install this module, we will use composer
:
composer require wildphp/module-calculator
That will install all required files for the module. In order to activate the module, add the following line to your modules array in config.neon
:
- WildPHP\Modules\Calculator\Calculator
The bot will run the module the next time it is started.
Pass any mathematical expression to the calc
command.
This module is licensed under the MIT license. Please see LICENSE
to read it.