hashworks / phergie-plugin-wolfram-alpha
Phergie 插件,通过 IRC 访问 Wolfram Alpha API。
v1.0.1
2015-02-19 19:00 UTC
Requires
Suggests
- phergie/phergie-irc-plugin-react-commandhelp: provides interactive help for commands
This package is not auto-updated.
Last update: 2024-09-28 16:25:56 UTC
README
Phergie 插件,通过 IRC 访问 Wolfram Alpha API。
安装
要通过 Composer 安装,请使用以下命令,它将自动检测最新版本并将其绑定到 ~
。
composer require hashworks/phergie-plugin-wolfram-alpha
有关如何安装和启用插件的更多信息,请参阅 Phergie 文档 安装和启用插件。
配置
// 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. )),
示例
<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