sitedyno/phergie-twitch-status

Phergie plugin for fetching a twitch channel's status/title.

1.0.0 2016-02-14 00:12 UTC

This package is auto-updated.

Last update: 2024-12-06 09:24:16 UTC


README

Phergie plugin for fetching a twitch channel's status/title.

Build Status

Install

The recommended method of installation is through composer.

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

See Phergie documentation for more information on installing and enabling plugins.

Configuration

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%',
        ])
    ]
];

Tests

To run the unit test suite:

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

License

Released under the BSD License. See LICENSE.