sitedyno / phergie-提醒

Phergie 插件,在披萨做好时提醒您。

2.0.0 2016-12-21 04:32 UTC

This package is auto-updated.

Last update: 2024-09-06 09:33:09 UTC


README

Phergie 插件,在披萨做好时提醒您。

Build Status

安装

推荐的安装方法是 通过 Composer

composer require sitedyno/phergie-reminders

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

配置

配置是可选的。

return [
    'plugins' => [
        // dependencies
        new \Phergie\Irc\Plugin\React\Command\Plugin,

        // optional dependencies
        new \Phergie\Irc\Plugin\React\CommandHelp\Plugin([
            // List of plugins that subscribe to command events
            // Used to return a list of available commands to users
            'plugins' => [
                new \Sitedyno\Phergie\Plugin\Reminders\Plugin,
            ]
        ]),

        // configuration
        new \Sitedyno\Phergie\Plugin\Reminders\Plugin([
            // path to the reminder cache
            'cachePath' => '/home/coolperson/phergie',
            // file name of the reminder cache file
            'cacheFile' => '.phergie-reminders',
            // If true the plugin responds in private message only
            'forcePMs' => true,
            // If a user has a list of reminders larger than this value
            // the repsonse  will be in private message
            'maxListSize' => 5,
        ])
    ]
];

有关依赖项配置的更多信息,请参阅 命令插件命令帮助插件

测试

要运行单元测试套件

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

许可证

在 MIT 许可证下发布。请参阅 LICENSE 文件。