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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectTagger, AutoAssessor2: * Don't add useless "importance=" to WPBio template.
AnomieBOT (talk | contribs)
Updating published sources: AutoAssessor2: * Remove debugging code. AnomieBOT::API: * Add a new setting, automaxlag, which can be used to turn off maxlag retries. * Also, automatically set it false when the bot is trying to halt.
Line 26:
use strict;
 
use Data::Dumper;
use AnomieBOT::Task;
use vars qw/@ISA/;
Line 85 ⟶ 84:
 
my @x=(@{$page->{'categories'} // []},@{$page->{'templates'} // []},@{$talk->{'categories'} // []},@{$talk->{'templates'} // []});
warn Dumper(\@x);
my $mark=0;
$mark|=1 if grep($_->{'title'} eq 'Template:WPBiography', @x);
Line 98 ⟶ 96:
$mark|=8 if grep($_->{'title'} eq 'Category:Academic publishing', @x);
$mark|=16 if grep($_->{'title'} eq 'Template:WikiProject History of Science', @x);
warn Dumper(\$mark);
 
if($mark&1){