Wikipedia:Bots/Requests for approval/TFA Protector Bot 3
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: Legoktm (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 01:55, Thursday, September 8, 2022 (UTC)
Function overview: Semi-protect TFAs
Automatic, Supervised, or Manual: Automatic
Programming language(s): Rust
Source code available: [1]
Links to relevant discussions (where appropriate):
- Wikipedia:Village_pump_(proposals)/Archive_183#RFC:_Pending-changes_protection_of_Today's_featured_article
- Wikipedia_talk:Today's_featured_article/Archive_15#Bot_details
Edit period(s): Daily
Estimated number of pages affected: 1 per day
Namespace(s): mainspace
Exclusion compliant (Yes/No): No
Adminbot (Yes/No): Yes
Function details: Note: This has only been approved for a 30-day trial, at which point it would need further community consensus to keep running AIUI.
- This is fully independent of the move protection the bot already applies
- At 23:00 UTC, get the next day's TFA (following any redirect)
- Get edit protection status:
- If protection is indefinite, do nothing
- If protection expires after the article is off TFA, do nothing
- If protection expires before the article is off TFA, extend the current protection until it is off TFA (keeps existing protection level)
- If there is no protection, apply semi-protection until it is off TFA
I ran a simulation of the next 30ish TFAs: here's an example of a page that has no edit protection:
INFO tfa_semi_prot: 55 Wall Street needs protection! INFO tfa_semi_prot: Protection options: [["action","protect"],["title","55 Wall Street"],["protections","edit=autoconfirmed|move=sysop"],["expiry","2022-09-12T00:00:00Z|2022-09-12T00:00:00Z"],["reason","Upcoming TFA ([[WP:BOT|bot protection]])"]]
And here's an example of a page that has semi-protection, but it needs to be extended:
INFO tfa_semi_prot: A.C. Monza needs protection to be extended! INFO tfa_semi_prot: Protection options: [["action","protect"],["title","A.C. Monza"],["protections","edit=autoconfirmed|move=sysop"],["expiry","2022-09-21T00:00:00Z|2022-09-21T00:00:00Z"],["reason","Upcoming TFA ([[WP:BOT|bot protection]])"]]