Revision as of 11:47, 17 May 2006 editTizio (talk | contribs)Extended confirmed users13,761 edits switched to scheduled← Previous edit |
Revision as of 14:58, 7 July 2006 edit undoTizio (talk | contribs)Extended confirmed users13,761 edits updated descriptionNext edit → |
Line 1: |
Line 1: |
|
{{bot|Paolo Liberatore}} |
|
{{bot|Paolo Liberatore}} |
|
|
|
|
|
==Bot description== |
|
==Bot functions== |
|
|
|
|
|
# This bot creates categories such as ] from yesterday for four days. These categories are created only if they do not exist already. The content of each newly created category is <nowiki>{{</nowiki>subst:]<nowiki>}}</nowiki>. It has a 30 sec delay between creation of each category |
|
# creates categories such as ] |
|
|
# list incomplete AfD nominations at ] |
|
|
# complete nominations when the AfD subpage exists but is not listed |
|
|
|
|
|
==Bot internals== |
|
|
|
|
|
# the ] 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 <nowiki>{{</nowiki>subst:]<nowiki>}}</nowiki>. 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 ] 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 <nowiki>==]==</nowiki> 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) |
|
|
|
|
|
==Bot description== |
|
# It is a bash script using sed, awk, grep, and curl. |
|
# It is a bash script using sed, awk, grep, and curl. |
|
# <del>It is currently manually run</del> It runs at 12:14 every day, local time |
|
# The AfD part is manually run |
|
|
# The prod cat creation is done at It runs at 15:50 every day, local time |
|
# It is supposed to be run until the toolserver gets the updates for winien, and for future periods of unavailability of the toolserver |
|
# 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 |
|
# Maintainer is ] |
|
# Maintainer is ] |