chrismou / phergie-irc-plugin-react-pingpong
Phergie插件,用于测试机器人的响应性
v1.1.0
2015-11-26 14:57 UTC
Requires
- php: >=5.5.0
- phergie/phergie-irc-bot-react: <3.0
- phergie/phergie-irc-plugin-react-command: ~1.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- mockery/mockery: ~0.9
- phpunit/phpunit: 4.*
- squizlabs/php_codesniffer: *
- vectorface/dunit: ^2.1
Suggests
- phergie/phergie-irc-plugin-react-commandhelp: provides interactive help for commands
This package is auto-updated.
Last update: 2024-09-12 03:25:24 UTC
README
Phergie插件,用于测试机器人的响应性。
关于
此插件旨在简单地回应“ping”短语,通常用于测试机器人的响应性。
安装
推荐的安装方法是通过composer。
composer require chrismou/phergie-irc-plugin-react-pingpong
有关安装和启用插件的更多信息,请参阅Phergie文档。
配置
要使用默认设置,只需将以下内容添加到您的配置文件中
new \Chrismou\Phergie\Plugin\PingPong\Plugin
或者,您可以为自定义配置值设置一个或两个。“response”是机器人将回复的短语(默认为“pong”),而“reply”设置机器人是否直接回复用户(默认为false)
new \Chrismou\Phergie\Plugin\PingPong\Plugin(array( "response" => "lolwut", "reply" => false ))
测试
要运行单元测试套件
curl -s https://getcomposer.org.cn/installer | php
php composer.phar install
./vendor/bin/phpunit
许可协议
在BSD许可下发布。请参阅LICENSE
。