Wikipedia:Bots/Requests for approval/EyeEightDestroyerBot

EyeEightDestroyerBot

[[User:EyeEightDestroyerBot|EyeEightDestroyerBot]]

{{Newbot|EyeEightDestroyerBot}}

Operator: {{User|X!}}

Automatic or Manually assisted: Automatic

Programming language(s): PHP

Source code available: [https://svn.toolserver.org/svnroot/soxred93/EyeEightDestroyerBot/trunk/ On Toolserver SVN]

Function overview: As requested on BOTREQ, this is an adminbot that will delete 25000 specific images under CSD F8.

Links to relevant discussions (where appropriate):

Edit period(s): One-time run

Estimated number of pages affected: Roughly 25000 images will be deleted.

Exclusion compliant (Y/N): Y

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

Function details: This bot, as requested by multichil, does the following:

  • Get every transclusion of Special:WhatLinksHere/Template:PBB Image citation
  • For each transclusion:
  • Check if the transclusion is actually an image, if not, skips
  • Check if the image exists on Commons, if not, skips
  • Gets the hashes of both the enwiki and commons images, if they are not the same, skips
  • Checks if the enwiki page has {{tl|nobots}} (or a variant), if so, skips
  • Deletes the image with the summary: "F8: Media file available on Commons - http://commons.wikimedia.org/wiki/File:Example.jpg"

This is a one-time run, so this should be relatively uncontroversial.

=Discussion=

I have spammed WP:AN and WP:VPR about this bot. (X! · talk)  · @072  ·  00:43, 1 March 2010 (UTC)

:Looks good as far as I can see. Two small points:

:*You don't have to download the files, you can just ask the api the SHA1 hash

:*Link should probably not be external, what do you think of "F8: Media file available on Commons"?

:multichill (talk) 08:08, 1 March 2010 (UTC)

::Caveat to the first is that the database contains the correct hash, which has been known to break. Q T C 08:31, 1 March 2010 (UTC)

:::First is just a fallback, to ensure that images are not skipped or deleted unless they actually are the same image. Second was something that did not occur to me, I have completed this accordingly. (X! · talk)  · @664  ·  14:56, 1 March 2010 (UTC)

  • Question - How would this bot check to see if 2nd, 3rd, and 4th main/outer bullet points of the F8 criteria are true?--Rockfang (talk) 23:23, 2 March 2010 (UTC)
  • I took care of that, see here. multichill (talk) 19:11, 3 March 2010 (UTC)
  • Thanks for the link. That works for me. One further question though. What about any potential images that might have {{Tl|NoCommons}} or {{Tl|KeepLocal}}?--Rockfang (talk) 19:22, 3 March 2010 (UTC)
  • The uploader likes this transfer, so I think the potential is zero.
  • Upload is done by the way, so it would be nice if the bot could be fired up. multichill (talk) 19:26, 3 March 2010 (UTC)
  • Sounds fine to me.--Rockfang (talk) 19:40, 3 March 2010 (UTC)
  • Images transfered to Commons look good so I support a bot deletion. Let admins check what needs to be checked and let a bot do this job here. --MGA73 (talk) 20:03, 3 March 2010 (UTC)

{{tlp|BotTrial|edits=30}} — The Earwig (talk) 02:08, 4 March 2010 (UTC)

:[http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=delete&user=X!&page=&year=&month=-1&tagfilter=&limit=30&hide_patrol_log=1 Done 30 on main account]. (X! · talk)  · @139  ·  02:19, 4 March 2010 (UTC)

:Looks good to me. Josh Parris 08:19, 4 March 2010 (UTC)

:Looks good, {{BotTrialComplete}} multichill (talk) 12:22, 4 March 2010 (UTC)

{{BotApproved}} the trial has shown this helpful and harmless. Josh Parris 13:13, 4 March 2010 (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.