phergie / phergie-irc-plugin-react-quit
Phergie plugin for providing a command to instruct the bot to terminate a connection
Requires (Dev)
- phake/phake: 2.0.0-beta2
- phpunit/phpunit: 4.1.*
Suggests
- phergie/phergie-irc-plugin-react-commandhelp: provides interactive help for commands
This package is not auto-updated.
Last update: 2020-03-16 04:15:13 UTC
README
This repo is being kept for posterity and will be archived in a readonly state. If you're interested it can be forked under a new Composer namespace/GitHub organization.
phergie/phergie-irc-plugin-react-quit
Phergie plugin for providing a command to instruct the bot to terminate a connection.
Install
The recommended method of installation is through composer.
composer require phergie/phergie-irc-plugin-react-quit
See Phergie documentation for more information on installing and enabling plugins.
Note that this plugin depends on the Command plugin plugin, which is installed as a dependency by composer but must still be enabled in your Phergie configuration file to be available to this plugin.
Configuration
return array( 'plugins' = array( new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency new \Phergie\Irc\Plugin\React\Quit\Plugin(array( // Optional: sprintf-compatible template for the message sent when the bot // quits; takes one parameter, a string containing the nick of the user who // initiated the command to quit 'message' => 'because %s said so', )), ) );
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
.