hashworks/phergie-plugin-wolfram-alpha

Phergie plugin to access the Wolfram Alpha API trough IRC.

v1.0.1 2015-02-19 19:00 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:52:03 UTC


README

Phergie plugin to access the Wolfram Alpha API trough IRC.

Install

To install via Composer, use the command below, it will automatically detect the latest version and bind it with ~.

composer require hashworks/phergie-plugin-wolfram-alpha

See Phergie documentation for more information on installing and enabling plugins.

Configuration

// dependency
new \Phergie\Irc\Plugin\React\Command\Plugin,
new \hashworks\Phergie\Plugin\WolframAlpha\Plugin(array(
    'appid' => 'your-app-id', // Required. Set your appID. https://developer.wolframalpha.com/portal/apisignup.html
    'useMetric' => true, // Default. Use metric system for results.
    'processingReply' => true, // Default. Show or hide the 'Processing ...' reply.
    'limit' => 5// Default. Limit the number of lines send to a channel or user.
)),

Examples

<hashworks> wolfram-alpha population of germany
<Phergie> Processing...
<Phergie> 81.6 million people (world rank: 16th) (2014 estimate)
<hashworks> wolfram-alpha 200€ in BTC
<Phergie> Processing...
<Phergie> ฿0.92 (bitcoins)
<hashworks> 20 = 2500/x
<Phergie> Processing...
<Phergie> x = 125