sitedyno/phergie-twitch-status
Phergie plugin for fetching a twitch channel's status/title., (*1)
, (*2)
Install
The recommended method of installation is through composer., (*3)
php composer.phar require sitedyno/phergie-twitch-status
, (*4)
See Phergie documentation for more information on
installing and enabling plugins., (*5)
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:, (*6)
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
License
Released under the BSD License. See LICENSE
., (*7)