IRC::Bot::Help 0.07 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 11K
Developer: Benjamin Smith
0 stars award from rbytes.net

IRC::Bot::Help is a module to dispatch help for IRC::Bot.

SYNOPSIS

use IRC::Bot::Help;
my $seen = IRC::Bot::Help->new();

# later on...

# User asks for help in DCC CHAT
sub on_dcc_chat {
my ( $kernel, $id, $who, $msg ) = @_[ KERNEL, ARG0, ARG1, ARG3 ];

my $nick = ( split /!/, $who )[0];

# Do Stuff...
if ( $msg =~ m/^.help/i ) {

my $topic = $help->ask_help('all');
$kernel->post( NICK, 'dcc_chat', $id, $topic );

}

}

Basically holds a list of help topics and dispatches them on demand.

Requirements:
Perl

IRC::Bot::Help 0.07 keywords