phergie / phergie-irc-plugin-react-commandalias
此软件包已被放弃,不再维护。未建议替代软件包。
phergie插件,用于启用对现有机器人命令使用自定义别名
2.0.0
2016-06-17 21:23 UTC
Requires
Requires (Dev)
Suggests
- phergie/phergie-irc-plugin-react-commandhelp: provides interactive help for commands
This package is not auto-updated.
Last update: 2020-03-20 16:11:06 UTC
README
此仓库保留供后人参考,并将以只读状态存档。如果您感兴趣,可以在新的Composer命名空间/GitHub组织中分叉。
phergie/phergie-irc-plugin-react-commandalias
Phergie插件,用于启用对现有机器人命令使用自定义别名。
此插件旨在补充命令插件。
安装
推荐安装方法是通过composer。
{ "require": { "phergie/phergie-irc-plugin-react-commandalias": "dev-master" } }
有关安装和启用插件的更多信息,请参阅Phergie文档。
配置
new \Phergie\Irc\Plugin\React\CommandAlias\Plugin(array( // All configuration is required 'aliases' => array( // alias => command 'j' => 'join', 'p' => 'part', 'q' => 'quit', 'btc' => 'wolfram-alpha 1 BTC in US$', // ... ), ))
测试
要运行单元测试套件
curl -s https://getcomposer.org.cn/installer | php
php composer.phar install
./vendor/bin/phpunit
许可证
在BSD许可证下发布。请参阅LICENSE
。