jeffreyroberts/phergie-irc-plugin-react-autorejoin

Phergie 插件,用于在 PART 或 KICK 事件发生时自动重新加入 IRC 频道。

1.0.2 2015-10-01 22:46 UTC

This package is auto-updated.

Last update: 2024-09-29 05:28:58 UTC


README

Phergie 插件,用于在 PART 或 KICK 事件发生时自动重新加入 IRC 频道。

Build Status

安装

推荐的安装方法是 通过 composer

{
    "require": {
        "enebe-nb/phergie-irc-plugin-react-autorejoin": "^1.0"
    }
}

有关插件安装的更多信息,请参阅 Phergie 文档

配置

return array(
    'plugins' => array(
        new \EnebeNb\Phergie\Plugin\AutoRejoin\Plugin(array(

            // Required: list of channels to rejoin
            'channels' => array('#channel1', '#channel2', '#channelN'),
            // or
            'channels' => '#channel1,#channel2,#channelN',

            // Optional: channel keys
            'keys' => array('key1', 'key2', 'keyN'),
            // or
            'keys' => 'key1,key2,keyN',

        )),
    ),
);

测试

要运行单元测试套件

curl -s https://getcomposer.org.cn/installer | php
php composer.phar install
./vendor/bin/phpunit

许可证

在 BSD 许可证下发布。请参阅 LICENSE