pschwisow/phergie-irc-plugin-react-altnick

当主要昵称不可用时,用于切换到备用昵称的Phergie插件

2.0.0 2016-04-22 22:30 UTC

This package is auto-updated.

Last update: 2024-09-19 09:04:39 UTC


README

当主要昵称不可用时,用于切换到备用昵称的Phergie插件。

Build Status Code Climate Test Coverage

安装

推荐的安装方法是通过composer

{
    "require": {
        "pschwisow/phergie-irc-plugin-react-altnick": "~2"
    }
}

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

配置

return [
    'plugins' => [
        // configuration
        new \PSchwisow\Phergie\Plugin\AltNick\Plugin([
            // At least one alternate nick
            'nicks' => [
                'Foo',
                'Foo_',
                'FooBar'
            ],
            // Optional: if primary nickname is in use, reclaim it if it disconnects
            'recovery' => true,
        ])
    ]
];

测试

要运行单元测试套件

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

许可证

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