sitedyno/phergie-fortune
Composer 安装命令:
composer require sitedyno/phergie-fortune
包简介
Phergie plugin for displaying a fortune in channel
README 文档
README
Phergie plugin for displaying a fortune in channel.
⚠️ This plugin makes system calls! It should be fine unless misconfigured. You have been warned. ⚠️
This plugin assumes you have installed fortune on your *nix like system. For
more detailed information on databases see man fortune.
Install
The recommended method of installation is through composer.
composer require sitedyno/phergie-fortune
See Phergie documentation for more information on installing and enabling plugins.
Provided Commands
| Command | Parameters | Description |
|---|---|---|
| !fortune | none | Displays a random fortune in channel |
Configuration
return [ 'plugins' => [ // dependency new \Phergie\Irc\Plugin\React\Command\Plugin, // configuration, all is optional new \Sitedyno\PhergieFortune\Plugin([ // The path to the fortune binary. Defaults to '/usr/games/fortune'. 'binary-path' => '/usr/games/fortune', // List of databases to use. Defaults to 'fortunes'. See `man fortune` for possible values. 'databases' => 'fortune', // Use only short fortunes. Defaults to true. 'short' => true ]) ] ];
Tests
To run the unit test suite:
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
License
Released under the MIT License. See LICENSE.md.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-07