User:GreenC bot/Job 20
This user is a bot | |
---|---|
(talk · contribs) | |
Status | Active |
Operator | User:GreenC bot |
Author | User:GreenC |
Approved? | no |
Flagged? | Yes |
Edit rate | On-demand |
Edit period(s) | Once daily |
Automatic or manual? | Automatic |
Programming language(s) | GNU Awk |
Exclusion compliant? | Yes |
Source code published? | User:GreenC_bot/Job_20/source |
Emergency shutoff-compliant? | Yes |
You can stop the bot by pushing the stop button. The bot sees and immediately stops running. Unless it is an emergency please consider reporting problems first to the talk page. |
peerr removes the template {{Peer review}}
from talk pages when no longer needed. ie. the template was added more than 7 days ago indicating the peer review processes has stalled or was not properly initiated.
Long description: As part of the peer review process, {{Peer review}}
are added to article talk pages, but sometimes the process is not done correctly or stalls. A tracking cat was created to catch these (Category:Peer review requests not opened), but still requires manual removal of the template after waiting some time. It is safe to say if the template has been in place for more than 7 days without indication the rest of the processes has been done, the template can be removed. To automate: once a day, the bot retrieves the list of page names in the tracking category, along with today's date ("added date"), and adds it to a text file. If the page name is already in the text file don't add it again, rather check if it has been more than 7 days since the added date. If so, verify there is a corresponding peer review page called Wikipedia:Peer review/PAGENAME/archiveX and if not then remove the Peer review template, and remove the text file entry. Likewise if the page name is in the text file but not in the tracking category then remove the page name from the file.
The idea for a bot was originally conceived by Tom (LT).
FAQ
[edit]- Where was the bot discussed?
- BRFA
- User_talk:GreenC#Bot_functionality_request (initial discussion)
- What if the bot made a mistake?
- Report errors to User_talk:GreenC bot
- How do I keep it off a page?
- Add
{{bots}}
somewhere in the page ie.{{bots|deny=peerr}}
- Add
- How can I track the bot?
- Logs and data are available at https://tools-static.wmflabs.org/botwikiawk/peerr/
- loguploads.txt - 1-line per
{{peer review}}
removal. It shows the command the bot invoked to edit the page - logerrors.txt - any errors on upload
- list.txt - A CSV with "----" as separator. Field 1 is the talk page where the template is located. Field 2 is the date the bot first became aware of the template. Field 3 is the page being monitored for creation within 7 days of field 2.
- loguploads.txt - 1-line per
- Logs and data are available at https://tools-static.wmflabs.org/botwikiawk/peerr/