Initial checkin of mozbot code-reviewing functionality.

This commit is contained in:
mccabe%netscape.com 1999-10-26 01:22:00 +00:00
Родитель f09a8af084
Коммит d4dfe69b45
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -76,6 +76,7 @@ my %pubcmds = (
"debug" => \&bot_debug,
"(stocks|stock)" => \&bot_pub_stocks,
"(translate|xlate|x)" => \&bot_translate,
"review" -> \&bot_review,
);
my %admincmds = (
@ -1145,6 +1146,11 @@ sub bot_translate {
}
}
sub bot_review {
my ($nick, $cmd, $rest) = (@_);
sendmsg($nick, "$::speaker, I've reviewed your code, and it looks great. r=mozbot.");
}
sub trim {
($_) = (@_);
s/^\s+//g;