|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface for a module that implements an help method. More...
Public Member Functions | |
| getHelp (\Erebot\Interfaces\Event\Base\TextMessage $event,\Erebot\Interfaces\TextWrapper $words) | |
Interface for a module that implements an help method.
This interface provides an help method for Erebot's modules. Such a method is called when some user requests help on the module or a command provided by the bot.
Definition at line 31 of file HelpEnabled.php.
| Erebot\Interfaces\HelpEnabled::getHelp | ( | \Erebot\Interfaces\Event\Base\TextMessage | $event, |
| \Erebot\Interfaces\TextWrapper | $words | ||
| ) |
Provides help about the current module.
| Erebot::Interfaces::Event::Base::TextMessage | $event | Some help request. |
| Erebot::Interfaces::TextWrapper | $words | Parameters passed with the help request. This is the same as the module's name when help is requested on the module itself (as opposed to help on a specific command provided by the module). |
| boolean | (optional) Indicates whether the help request was handled by this method (true) or not (false). Unhandled help requests are passed to the next help method registered until either some help method handles the request or all methods have been tried with no success. If omitted, false is assumed. |