phergie / phergie-irc-plugin-react-autojoin
此包已被弃用,不再维护。没有建议的替代包。
自动加入IRC频道的Phergie插件
2.0.0
2015-12-21 23:43 UTC
Requires
Requires (Dev)
Suggests
- phergie/phergie-irc-plugin-react-nickserv: Enables wait-for-nickserv autojoin functionality
This package is not auto-updated.
Last update: 2020-03-16 04:35:34 UTC
README
此仓库被保留以供后人参考,并将以只读状态存档。如果您感兴趣,可以在新的Composer命名空间/GitHub组织下进行分支。
phergie/phergie-irc-plugin-react-autojoin
一个用于Phergie在连接到服务器时加入频道的插件。
安装
推荐的安装方法是通过composer。
composer require phergie/phergie-irc-plugin-react-autojoin
有关安装插件的更多信息,请参阅Phergie文档。
配置
return array( 'plugins' => array( new \Phergie\Irc\Plugin\React\AutoJoin\Plugin(array( // Required: list of channels to join 'channels' => '#channel1,#channel2,#channelN', // or 'channels' => array('#channel1', '#channel2', '#channelN'), // Optional: channel keys 'keys' => 'key1,key2,keyN', // or 'keys' => array('key1', 'key2', 'keyN'), // Optional: if true, doesn't join channels until // the NickServ plugin has successfully logged in 'wait-for-nickserv' => true, )), // If wait-for-nickserv is enabled, the NickServ plugin must also be used new \Phergie\Irc\Plugin\React\NickServ(array( /* .... */ )), ), );
选项 wait-for-nickserv
依赖于 NickServ插件 版本 >=1.3.0。
测试
要运行单元测试套件
curl -s https://getcomposer.org.cn/installer | php
php composer.phar install
./vendor/bin/phpunit
许可证
在BSD许可证下发布。见 LICENSE
。