Bot::BasicBot::Pluggable::Module::RD_Basic - Basic RDBot commands
!load RD
See the synopsis of Bot::BasicBot::Pluggable for how to load this plugin.
This is an example module of how to use the Bot::BasicBot::Pluggable::Module::RD grammar framework, and should be used as the basis of creating new pluggable RDBot modules.
Note that the grammar and methods in this module are available once RD has been loaded, but that will not be generally be true. A module that uses RD will need to have RD loaded first.
The following simple commands are provided:
say Hello channel tell ivorw I'm connected
There's also a catch all verb "Sorry", useful for dealing with, and disposing of error messages from other bots.
This is called by the BasicBot infrastructure. Put anything else here that needs to happen when your module is loaded.
You need to provide a help method, which is called when someone says
bot: help module
See also Bot::BasicBot::Pluggable::Module.
You provide subs in __PACKAGE__::Command for each command verb which get called. Note that there must be a new method available either here or in its super class.
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.