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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * New task.
 
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Approved!
Line 1:
{{ombox|type=notice|text= ApprovalApproved requested2016-03-08<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 74]]}}
<syntaxhighlight lang="perl">
package tasks::EnDashRedirectCreator;
Line 10:
Task: EnDashRedirectCreator
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 74
Status: BRFAApproved 2016-03-08
Created: 2016-03-03
 
Line 38:
 
=for info
ApprovalApproved requested2016-03-08<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 74]]
 
=cut
 
sub approved {
return 03;
}
 
Line 164:
# Create page
$api->log("$summary in $redir");
my $r = $api->edit($tok, $txt, "$summary . $screwup", 0, 1);
if($r->{'code'} ne 'success'){
$api->warn("Write failed on $redir: ".$r->{'error'}."\n");