зеркало из https://github.com/mozilla/pjs.git
Initial checkin of mozbot code-reviewing functionality.
This commit is contained in:
Родитель
457559aa6d
Коммит
8d32ad4bc2
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче