2017 © Pedro Peláez
 

library phergie-irc-plugin-react-commandhelp

Phergie plugin for providing usage information for available bot commands to users

image

phergie/phergie-irc-plugin-react-commandhelp

Phergie plugin for providing usage information for available bot commands to users

  • Friday, October 20, 2017
  • by elazar
  • Repository
  • 5 Watchers
  • 1 Stars
  • 1,368 Installations
  • PHP
  • 0 Dependents
  • 24 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

This project is abandoned

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., (*1)

phergie/phergie-irc-plugin-react-commandhelp

Phergie plugin for providing usage information for available bot commands to users., (*2)

This plugin is intended to complement the Command plugin., (*3)

Build Status, (*4)

Install

The recommended method of installation is through composer., (*5)

composer require phergie/phergie-irc-plugin-react-commandhelp

See Phergie documentation for more information on installing and enabling plugins., (*6)

Configuration

    // All configuration is optional
    new \Phergie\Irc\Plugin\React\CommandHelp\Plugin([

        // List of plugins that subscribe to command events
        // Used to return a list of available commands to users
        // All elements must implement \Phergie\Irc\Bot\React\PluginInterface
        'plugins' => [
            new Phergie\Irc\Plugin\React\TableFlip\Plugin()
        ],

        // Text to precede the list of available commands when providing it to
        // users
        'listText' => 'Available commands: ',

    ]),

Usage

This plugin provides a "help" command that can be invoked with or without parameters., (*7)

If it is invoked without parameters, it will respond with a list of all available commands, which is obtained from the value of the 'plugins' configuration setting based on the command events to which those plugins subscribe., (*8)

If it is invoked with parameters, it will assume the first parameter to be a command name and emit an event for the plugin supporting that command to respond to., (*9)

For example, if the first parameter value is 'foo', the plugin will emit a 'command.foo.help' event that the plugin supporting the "foo" command can subscribe to. This event's parameters will be an object implementing CommandEventInterface (the event originally received by the CommandHelp plugin) and an object implementing EventQueueInterface (which the receiving plugin can use to respond with information about its "foo" command to the user who invoked the "help" command)., (*10)

Tests

To run the unit test suite:, (*11)

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

License

Released under the BSD License. See LICENSE., (*12)

The Versions

20/10 2017

dev-master

9999999-dev

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react

26/04 2016

2.1.1

2.1.1.0

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react

22/03 2016

2.1.0

2.1.0.0

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react

21/12 2015

2.0.0

2.0.0.0

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react

21/12 2015

dev-upgrade-version2

dev-upgrade-version2

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react

24/12 2014

1.0.0

1.0.0.0

Phergie plugin for providing usage information for available bot commands to users

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc react