SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

Bot::Help

Section: User Contributed Perl Documentation (3)
Updated: 2007-06-22
Index 

NAME

Help.pm - 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 );    }  }
 

DESCRIPTION

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

METHODS

ask_help()
ask_help() Answers a question based on the argument given. If no arg is given, returns a list of all available help topics.

Use like so:

 my $topic = $help->ask_help('topic');
pub_help()
pub_help() Pretty much does the same thing as ask_help(), only forpublic commands.

Use like so:

 my %pubhelp = $help->pub_help();
 

CREDITS

See IRC::Bot 

AUTHOR

Benjamin Smith defitroAATTjust-another.net 

SEE ALSO

IRC::Bot POE::Component::IRC


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS
CREDITS
AUTHOR
SEE ALSO

This document was created byman2html,using the manual pages.