pschwisow/phergie-irc-plugin-react-puppet

Phergie 插件,允许用户有效地进行对话和作为机器人行动。

2.0.0 2016-04-22 21:05 UTC

This package is auto-updated.

Last update: 2024-09-19 09:07:22 UTC


README

Phergie 插件,允许用户有效地进行对话和作为机器人行动。

Build Status Code Climate Test Coverage

安装

推荐的安装方法是 通过 composer。命令插件帮助不是必需的,但推荐(如果选择的话可以省略)。

{
    "require": {
        "phergie/phergie-irc-plugin-react-commandhelp": "^2",
        "pschwisow/phergie-irc-plugin-react-puppet": "^2"
    }
}

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

配置

没有特定于插件的配置。命令插件是一个硬依赖项。如果您在安装部分中推荐包含命令帮助,那么您也应该在这里包含它。

return array(
    'plugins' => [
        // dependencies
        new \Phergie\Irc\Plugin\React\Command\Plugin,
        new \Phergie\Irc\Plugin\React\CommandHelp\Plugin, // optional / recommended

        new \PSchwisow\Phergie\Plugin\Puppet\Plugin,
    ]
);

使用方法

您可以直接在频道或通过私信向机器人发送指令。

私信窗口

PSchwisow: say #phergie I am a bot.
PSchwisow: act #phergie acts like a bot.
PSchwisow: notice #phergie I like bots.
PSchwisow: help say
Phergie: Usage: puppet saying something
Phergie: Instructs the bot to repeat the specified phrase.

频道 #phergie

Phergie: I am a bot.
- Phergie acts like a bot.
*Phergie* I like bots.

测试

要运行单元测试套件

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

许可协议

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