User:DumbBOT
From Wikipedia, the free encyclopedia
[edit] Bot functions
- creates categories such as Category:Proposed deletion as of 30 March 2007
- list incomplete AfD nominations at User:DumbBOT/IncompleteAfD
- complete nominations when the AfD subpage exists but is not listed
- creates a summary of the articles tagged WP:PROD at /ProdSummary
- list articles that are tagged {{copyvio}} but not listed
- maintain User:DumbBOT/RfArSummary and User:DumbBOT/UsernameChange
- removes protection templates from non-protected templates
[edit] Bot internals
- the WP:PROD daily categories are created for the days from yesterday for four days. These categories are created only if they do not exist already. The content of each newly created category is {{subst:Prod subcategory starter}}. It has a 30 sec delay between creation of each category
- the the list of incomplete AfDs is generated as follows (this function is not scheduled):
- the whole category Category:Articles for deletion is downloaded (this requires multiple downloads)
- the list of article is extracted, downloaded as a single export, and broke down in a local directory
- from the content of this directory, the pages not linking to the AfD category and the pages not containing a link to the AfD debate is computed
- the list of AfD subpages is created; these subpages are downloaded as a single export and broke down in a local directory
- comparing the list of subpages with the list of downloaded subpages, the list of non-existent subpages is created
- for every subpage, it is determined whether it is a redirect (in which case the target is downloaded), and whether it is listed in the page of debates of a day
- the unlisted afds are listed:
- the pages linking to each is downloaded to check whether the subpage is still unlisted
- for every subpages, it is checked whether the header ==[[pagename]]== is present; if not it is added; also added is a note that the AfD was incomplete, with a link to the correct procedure
- the wikicode to add to the afd of the day the incomplete nominations is generated (this is added manually)
- the prod summary is created by:
- downloading the list of articles in Category:All_articles_proposed_for_deletion
- downloading all articles in the category
- getting the data from the {{dated prod}} template
- the copyvio completion is done by:
- downloading the list of articles in Category:Possible copyright violations
- downloading Wikipedia:Copyright_problems and linked subpages
- finding the articles that are in the first list but not in the second
- downloading these articles, and getting the url argument of the {{copyvio}} template
[edit] Bot description
- It is a bash script using sed, awk, grep, and curl.
- The AfD part is manually run
- The prod cat creation is done at It runs at 15:50 every day, local time
- The prod cat part will be run until the toolserver gets the updates for winien again; it will be run for future periods of unavailability of the toolserver