Bot::BasicBot::Pluggable::Module::RD - RecDescent grammar adaptor plugin


Bot-BasicBot-Pluggable-Module-RD documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-RD distribution.

Index


NAME

Top

Bot::BasicBot::Pluggable::Module::RD - RecDescent grammar adaptor plugin

SYNOPSIS

Top

  !load RD

See the synopsis of Bot::BasicBot::Pluggable for how to load this plugin.

DESCRIPTION

Top

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.

The following simple commands are provided:

  say Hello channel
  tell ivorw I'm connected

Methods init, told, help

See the documentation for Bot::BasicBot::Pluggable::Module and Bot::BasicBot.

extend

This is called by any pluggable modules in order to add rules to the bot's Parse::RecDescent grammar.

BUGS

Top

Please report any bugs to http://rt.cpan.org.

AUTHOR

Top

    Ivor Williams
    CPAN ID: IVORW

    ivorw@cpan.org




COPYRIGHT

Top

SEE ALSO

Top

perl(1).


Bot-BasicBot-Pluggable-Module-RD documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-RD distribution.