ModuleDocumentation/whatbot/Controller.pm

< Back to Module Documentation // View in SVN

NAME

whatbot::Controller - Command processor and dispatcher

SYNOPSIS

 use whatbot::Controller;
 
 my $controller = new whatbot::Controller;
 $controller->build_command_map();
 
 ...
 
 my $messages = $controller->handle( $incoming_message );

DESCRIPTION

whatbot::Controller is the master command dispatcher for whatbot. When whatbot is started, Controller builds the run paths based on the attributes in the whatbot::Command namespace. When a message event is fired during runtime, Controller parses the message and directs the event to each appropriate command.

INHERITANCE

LICENSE/COPYRIGHT

Be excellent to each other and party on, dudes.