1 ################################
3 ################################
5 package BotModules::HelloWorld;
14 '' => 'This is the demo module that says Hello World.',
15 'hi' => 'Requests that the bot emit a hello world string.',
21 my ($event, $message) = @_;
22 if ($message =~ /^\s*hi\s*$/osi) {
23 $self->say($event, 'Hello World!');
25 return $self->SUPER::Told(@_);
27 return 0; # we've dealt with it, no need to do anything else.