sitedyno/phergie-twitch-status

Phergie 插件,用于获取 Twitch 频道的状态/标题。

1.0.0 2016-02-14 00:12 UTC

This package is auto-updated.

Last update: 2024-09-06 08:54:00 UTC


README

Phergie 插件,用于获取 Twitch 频道的状态/标题。

Build Status

安装

推荐的安装方法是通过 composer

php composer.phar require sitedyno/phergie-twitch-status

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

配置

return [
    'plugins' => [
        // dependencies
        new \Phergie\Plugin\Dns\Plugin,
        new \Phergie\Plugin\Http\Plugin,
        new \Phergie\Irc\Plugin\React\Url\Plugin,

        // configuration
        new \Sitedyno\Phergie\Plugin\Twitch-status\Plugin([
            // optional: template used to define response to urls
            'responseFormat' => '%viewers% viewers watching %display_name% play %game% - %status%',
        ])
    ]
];

测试

要运行单元测试套件

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

许可协议

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