Wikipedia:Bots/Requests for approval/SDPatrolBot


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol keep vote.svg Approved.

SDPatrolBot
Operator: Kingpin13

Automatic or Manually Assisted: Automatic

Programming Language(s): .NET C#

Function Overview: Mark pages for deletion under WP:CSD, and replace deletion tags removed by author

Edit period(s): Whenever I run it, probably almost daily

Already has a bot flag (Y/N): N

Function Details:

Tagging pages for G7:
 * If a page which has previously been nominated for deletion, is blanked completely by the author. Then this bot will mark it for deletion under G7.

Replacing speedy tags:
 * If a page which has been nominated for deletion has it's speedy tag removed by the author of the page, this bot will replace (or revert, depending on what you people want it to do ;D) the deletion tag and warn the user.

Discussion
There we go. Idea partly because I noticed a while ago that often authors often get away with removing speedy tags. - Kingpin13 (talk) 08:53, 22 May 2009 (UTC)

Oh just something else I thought I should say: This bot doesn't patrol the new pages or the recent changes, it patrols the current and past pages in CAT:CSD. - Kingpin13 (talk) 10:00, 22 May 2009 (UTC)


 * So if an article was in CSD last time you ran your bot, and now it's not, your bot checks the page to see why. Is that right? – Quadell (talk) 13:42, 22 May 2009 (UTC)
 * Not quite, it'll look at all articles that have been nominated for deletion, and if the page has been blanked by the author, then it'll tag it for G7, and if the page has had the speedy tag removed by the author it'll replace it and warn the user. Naturally, if you think it's needed, I can add in a couple of "checkers" so that if the page has changed enough since it was nommed to no longer meet the criteria, to not replace the tag. Dunno if this would be necessary though, since the warning left on the creator's page will say to them to either use a hangon or ask the nominator to remove the tag if it no longer applies. - Kingpin13 (talk) 13:56, 22 May 2009 (UTC)
 * BTW, just doing some testing for the code I've written so far (don't worry no bot edits ;D), and the bot gave me this. - Kingpin13 (talk) 17:40, 22 May 2009 (UTC)
 * Watch that extra bracket. :) – Quadell (talk) 18:08, 22 May 2009 (UTC)
 * No, I don't think that extra check is needed. I'm just trying to understand how you'll know an article was previously nominated for deletion, if the uploader has removed the tag. I mean, if I remove the tag from an article it'll no longer show up at CAT:CSD, right? Maybe I'm missing something. – Quadell (talk) 18:08, 22 May 2009 (UTC)

Okay, here goes: I have a class called "CSD" which basically contains all the info that the bot needs about the critera for speedy deletion (and a bit more ;D). And a class called "Candidate" which is a class for the actual nominated page. I have a list of Candidate(s) in the program. Now the bot runs every 20 (or whatever) seconds, and adds all the pages which are in CAT:CSD to the list of Candidate(s), but it doesn't remove the old ones (actually, those last 6 words were all you needed to know ;D). So it will only find pages which were nommed for deletion while it was running, but that shouldn't be a problem so long as the time that it runs for is long enough. Oh, also it will remove pages which are deleted. - Kingpin13 (talk) 18:20, 22 May 2009 (UTC)

I am curious about how the bot will interpret a G7 deletion. What happens if the author is not the only person who has "substantially" edited the page yet blanks it anyway. I know that admins are supposed to check the history but... Nakon 21:06, 22 May 2009 (UTC)


 * I've already added a catch for this, because it will only tag pages for G7 if the page has been nommed for deletion, thus, it meets (according to a human) the CSD anyway... Admittedly a different one, so it won't for sure meet G7, but it's just more friendly (less BITEy) to the new editor, then replacing it and warning them for removal of speedies, or reverting their edit and warning them for blanking pages. There is of course the slim possibility that the bot and human nominator are in error, so it's down to the admin after that - Kingpin13 (talk) 21:41, 22 May 2009 (UTC)


 * Oh, BTW, if the author removed a speedy template while adding a hangon, the user won't be warned. And also, I'll need to know what warning template should be used for warning authors about removing speedies. I'm off for a bit less then 12 hours now - Kingpin13 (talk) 21:54, 22 May 2009 (UTC)
 * The warning template is drmspeedy Nakon  22:22, 22 May 2009 (UTC)


 * Yeah, I was considering using the normal templates (alternatives to the one you showed are the level warnings uw-speedy1, uw-speedy2, etc.), but I'd also like them to mention that if they have changed the page enough so that it no longer meets the CSD, to contact the nominator (the bot will be able to tell them who nominated the page), and ask them to remove the speedy, as an alternative to placing a hangon on the page. Maybe that's not a good idea, but hangons seem to be very ineffective, - Kingpin13 (talk) 05:16, 23 May 2009 (UTC)
 * I don't think it's really necessary, but it's fine if you want to. – Quadell (talk) 20:10, 23 May 2009 (UTC)

Any estimate of how many articles would be effected per day? And will this affect non-mainspace (particularly imagespace)? – Quadell (talk) 20:10, 23 May 2009 (UTC)
 * At first I planned just to have it edit in the article space, but I changed my mind, and now it'll edit them all. Treating each one the same (although at the moment it can't re-add templates which have comments), of course, because I programmed it not to edit anything except articles at first, it would be easy enough to change it back to that (or just stop it from editing one -space (e.g. files)). At the moment it'll edit very few articles, maybes one or two every 15 minutes depending on timing and how many users are patrolling the recent changes and new pages. But this isn't a problem for me, the idea is to get the ones which are missed, rather then get as many as possible for it's self, the other articles are all being dealt with by other users. If you care, here's a bit of info about the time it takes: each run takes about 30-60 seconds, there's a 5 second gap between each run, after 25 runs it's found two articles which it would have edited. - Kingpin13 (talk) 20:38, 23 May 2009 (UTC)
 * Mybad, was just going through the code and I noticed a slight problem, times could be a bit off (or this could make no difference, but I'll fix the code up, and see what it's like). - Kingpin13 (talk) 20:52, 23 May 2009 (UTC)
 * Code fixed, some stuff moved around to, doing debugging, so will get back about the times. Let me know what spaces you want it to edit. Cheers - Kingpin13 (talk) 21:05, 23 May 2009 (UTC)


 * Note that Bots/Requests for approval/NNBot II is already approved for trial for the second task here.

For images, tags like nsd are frequently dealt with by the user adding a source and removing the tag. hangon isn't really used. This bot shouldn't readd the nsd tag when the user also adds a source, but I can't think of a way that a bot could know whether the tag was removed without fixing the issue or not. Same with nld, nrd, etc. So I'm not sure this bot should run in image space. Your thoughts? – Quadell (talk) 14:24, 24 May 2009 (UTC)


 * Suits me to not have it run in the imagespace, also means there's a lot of criteras I don't have to teach it. About NNBot II, shall I keep that function in SDPatrolBot or what? Also, d'you want me to get it to do the level warnings? - Kingpin13 (talk) 06:22, 25 May 2009 (UTC)
 * Don't worry about NNBot and duplication -- it's fine to have two bots doing similar tasks, since things won't fall through the cracks that way. And you can do standard warnings or custom warnings, whichever you prefer. – Quadell (talk) 21:43, 25 May 2009 (UTC)


 * I'm pretty happy with how it's going. Edit count is still about the same as before, but the time it takes to do a run is greatly reduced. - Kingpin13 (talk) 08:49, 25 May 2009 (UTC)

Let's see it. – Quadell (talk) 21:43, 25 May 2009 (UTC)


 * Cool, sorry it's taken me so long to get back to you. I'll start it in 15 minutes or so once I've added the level warnings and made so it actually edit pages rather then popup a msgbox saying that it would have done :) - Kingpin13 (talk) 16:36, 26 May 2009 (UTC)
 * Been running it for a while now. Got a few edits, I'll request a flag when/if it's approved. - Kingpin13 (talk) 19:12, 26 May 2009 (UTC)

Edits look great. – Quadell (talk) 19:18, 28 May 2009 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.