Wikipedia:Bots/Requests for approval/Hazard-Bot 29


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svg Approved

Hazard-Bot 29
Operator:

Time filed: 05:37, Saturday, December 5, 2015 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: GitHub

Function overview: Removes closed AfDs from Category:AfD debates relisted 3 or more times and Category:Relisted AfD debates

Links to relevant discussions (where appropriate): Bots/Requests for approval/Hazard-Bot 28, WP:AN

Edit period(s): twice a week

Estimated number of pages affected: 8848 initially, then perhaps just a few each month (depends on how many relisted AfDs get closed without the categories being removed)

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: The previous BRFA (linked above) approved Category:AfD debates relisted 3 or more times, so pretty much, Category:Relisted AfD debates is the new part (again see the previous BRFA for more details). Also, the updated script checks for  around the category and removes them while removing the category (see Special:Diff/693786374). Hazard SJ 05:37, 5 December 2015 (UTC)

Discussion
—  Earwig   talk 11:50, 6 December 2015 (UTC)
 * Here you go. They were only those from the plain relisted category, none from the 3 or more, considering that #28 ran a few hours ago and made 8 edits. P.S. if you were wondering, the reason why I put that in here as well was just to be able to refer to a single BRFA. Hazard SJ 20:36, 6 December 2015 (UTC)
 * Based on the code, won't the bot make two edits if it has both categories? Also, to be safer, you should probably only remove strings of the form  or , as the current regex will remove  . —  Earwig   talk  22:25, 6 December 2015 (UTC)
 * [//github.com/HazardSJ/HazardBot/commit/694925f19329ee3e44b8bee75016dc46da5fdcb2 Both fixed]. I actually got to do a dry run just now on a page with the first scenario, and it worked. Hazard SJ 02:23, 7 December 2015 (UTC)

This is fine, but I'm thinking that we should really get User:Mr.Z-man/closeAFD2.js modified as well, as it is frequently used and would save the bot from a large number of edits. I'll poke around. —  Earwig   talk 07:11, 8 December 2015 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.