Bot::BasicBot::Pluggable::Module::RD - RecDescent grammar adaptor plugin
!load RD
See the synopsis of Bot::BasicBot::Pluggable for how to load this plugin.
Many bots are concerned with responding to commands issued on IRC. The simple approach of regular expressions is used by many of the bot plugins. However, this module offers full syntax parsing via Parse::RecDescent.
Rather than each bot plugin doing its own parsing in an overridden said() routine, the approach used here is for a single grammar shared between the bot plugins. This module and namespace is the keeper of the grammar, and others can extend the grammar by adding rules to it.
said()
The following simple commands are provided:
say Hello channel tell ivorw I'm connected
init
told
help
See the documentation for Bot::BasicBot::Pluggable::Module and Bot::BasicBot.
This is called by any pluggable modules in order to add rules to the bot's Parse::RecDescent grammar.
Please report any bugs to http://rt.cpan.org.
Ivor Williams CPAN ID: IVORW ivorw@cpan.org
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1).
To install Bot::BasicBot::Pluggable::Module::RD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::BasicBot::Pluggable::Module::RD
CPAN shell
perl -MCPAN -e shell install Bot::BasicBot::Pluggable::Module::RD
For more information on module installation, please visit the detailed CPAN module installation guide.