sitedyno / phergie-fortune
Phergie 插件,用于在频道中显示幸运语
1.0
2017-05-07 19:47 UTC
Requires
Requires (Dev)
- phake/phake: ^2.3
- phpunit/phpunit: 4.5.*
- squizlabs/php_codesniffer: ^2.8
Suggests
- phergie/phergie-irc-plugin-react-commandhelp: provides interactive help for commands
This package is auto-updated.
Last update: 2024-08-29 04:20:01 UTC
README
Phergie 插件,用于在频道中显示幸运语。
⚠️ 此插件会执行系统调用!除非配置错误,否则应该没有问题。已经提醒您了。⚠️
此插件假设您已在 *nix 系统上安装了 fortune。有关数据库的更多详细信息,请参阅 man fortune
。
安装
推荐的安装方法是 通过 composer。
composer require sitedyno/phergie-fortune
有关 安装和启用插件 的更多信息,请参阅 Phergie 文档。
提供命令
配置
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 ]) ] ];
测试
要运行单元测试套件
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
许可证
在 MIT 许可证下发布。请参阅 LICENSE.md
。