User:AnomieBOT/source/tasks/AutoAssessor2.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: TemplateReplacer15: * Part 2 of a tagging request for WP Glass: replace the remaining {{tl|Glass pre-project}} with {{tl|Glass}}. AutoAssessor2: * Complete.
AnomieBOT (talk | contribs)
Updating published sources: General: * BREAKING CHANGE: Split d::Util into several different modules. * Many tasks updated to use log/debug instead of warn. AnomieBOT::API: * Moved warn back into AnomieBOT::API. * New functions: log, debug, halting *
Line 101:
my $res;
 
$api->task('AutoAssessor2', 0, 10, qw/d::UtilTemplates/);
 
# List of templates to assess in this task
Line 195:
}
 
$api->warnlog("Assessing $title\n");
 
# Ok, check the page
Line 278:
$found[-1]='and '.$found[-1] if @found>1;
my $summary="Assessing ".join((@found>2)?', ':' ', @found)." per $req";
$api->warnlog("$summary in $talk\n");
my $r=$api->edit($tok, $outtxt, $summary, 1, 1);
if($r->{'code'} ne 'success'){
Line 285:
}
} else {
$api->warnlog("Nothing to do in $talk\n");
}