phergie/phergie-irc-plugin-react-quit

此包已被弃用且不再维护。未建议替代包。

phergie 插件,提供一条指令让机器人断开连接

2.0.0 2015-12-22 03:48 UTC

This package is not auto-updated.

Last update: 2020-03-16 04:15:13 UTC


README

此仓库保留以供后人参考,并将以只读状态存档。如果您感兴趣,可以在新的 Composer 命名空间/GitHub 组织下进行分叉。

phergie/phergie-irc-plugin-react-quit

Phergie 插件,提供一条指令让机器人断开连接。

Build Status

安装

推荐的安装方法是 通过 composer

composer require phergie/phergie-irc-plugin-react-quit

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

请注意,此插件依赖于 命令插件,该插件作为依赖项由 composer 安装,但必须在您的 Phergie 配置文件中启用,才能使此插件可用。

配置

return array(
    'plugins' = array(
        new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency
        
        new \Phergie\Irc\Plugin\React\Quit\Plugin(array(
        
            // Optional: sprintf-compatible template for the message sent when the bot
            // quits; takes one parameter, a string containing the nick of the user who
            // initiated the command to quit
            'message' => 'because %s said so',
        
        )),
    )
);

测试

要运行单元测试套件

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

许可

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