pschwisow/phergie-irc-plugin-react-karma

Phergie plugin for handling requests to increment or decrement counters on specified terms

dev-master / 1.0.x-dev 2016-07-20 21:31 UTC

This package is auto-updated.

Last update: 2024-04-19 08:55:53 UTC


README

Phergie plugin for handling requests to increment or decrement counters on specified terms.

Build Status Code Climate Test Coverage

Install

The recommended method of installation is through composer.

php composer.phar require pschwisow/phergie-irc-plugin-react-karma

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

Provided Commands

The karma plugin maintains karma values for a list of terms and compares them as requested. Terms are most often IRC nicks, but the plugin does not require this. Terms may optionally be enclosed in parentheses (most often used for terms that contain whitespace).

Command Description
!karma term Get the current karma value for a term
!reincarnate term Reset the karma value for a term
term++ Increment the karma value for a term
term-- Decrement the karma value for a term
term1 < term2 Compare karma values of two terms
term1 > term2 Compare karma values of two terms

Configuration

return [
    'plugins' => [
        // configuration
        new \PSchwisow\Phergie\Plugin\Karma\Plugin([



        ])
    ]
];

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.