Phergie plugin that provides a command to display a user's last channel activity
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpunit.xml

README.md

Renegade334/phergie-irc-plugin-react-seen

Phergie plugin for Phergie plugin that provides a command to display a user's last channel activity.

Build Status

Install

The recommended method of installation is through composer.

{
    "require": {
        "renegade334/phergie-irc-plugin-react-seen": "~1.0"
    }
}

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

Usage

return [
    'plugins' => [
        new \Phergie\Irc\Plugin\React\Command\Plugin(['prefix' => '!']),
        new \Renegade334\Phergie\Plugin\React\Seen\Plugin,
    ]
];

To restrict use of the seen command to particular channels or connections, use the EventFilter plugin:

use Phergie\Irc\Plugin\React\Command\Plugin as CommandPlugin;
use Phergie\Irc\Plugin\React\EventFilter\ChannelFilter;
use Phergie\Irc\Plugin\React\EventFilter\Plugin as EventFilterPlugin;
use Renegade334\Phergie\Plugin\React\Seen\Plugin as SeenPlugin;

return [
    'plugins' => [
        new CommandPlugin(['prefix' => '!']),
        new EventFilterPlugin([
            'filter' => new ChannelFilterPlugin(['#channel1', '#channel2']),
            'plugins' => [new SeenPlugin],
        ]),
    ],
];

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.