MyWiki:Bots/Requests for approval/KeyboardSmashingRobot
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was File:Symbol delete vote darkened.svg Denied.
Operator: Monkeysmashingkeyboards (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 04:36, Saturday, December 13, 2025 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Node
Source code available: https://github.com/potatolover68/KeyboardSmashingRobot
Function overview: Restores AfC templates[1] that were removed by the author of the draft, when edit filter 1370 is triggered.
Links to relevant discussions (where appropriate):
Edit period(s): Continous - 1370 triggers around 10-30 times in a day
Estimated number of pages affected: 2,000 or so? Mostly just a very small subset of AfC drafts that trigger filter 1370
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: Polls the Action API for hits to 1370 every 30 seconds or so, and if it hasn't seen that revid resulting from that poll before, it: 1. Gets the page history, and gets the edit before the edit removing the AfC templates 2. Scrapes all the AfC submission templates, then orders by timestamp 3. Scrapes all the comment templates 4. Gets the current edit(the one that removed the AfC templates) and remove all AfC templates, then append the ones previously scraped
References
- ^ ({{AfC submission}}, which tracks declines, and {{AfC comment}}, which, as the name implies, is an AfC comment)
Discussion
[edit source]Polls the Action API for hits to 1370 every 30 seconds or so
This is fine, but if you want to go for an event-driven model, there are some IRC bots that log filter hits to a channel that you could listen to. Not sure if it's as reliable as invoking the API directly though. – SD0001 (talk) 08:58, 13 December 2025 (UTC)
- I don't think that this task in it's current form is a good idea. AfC is optional, and editors are free to move their drafts into mainspace once they're autoconfirmed. This would prevent editors removing AfC declines in draftspace (which is equivalent to setting 1370 to disallow) and they could only remove them in mainspace. A much better option would to only restore them if the draft is submitted to AfC again after the declines were removed. Tenshi! (Talk page) 11:30, 13 December 2025 (UTC)
- Do you think this could be used as an extension? Maybe a userscript? Could still be useful for doing AfC reviews. guninvalid (talk) 23:42, 13 December 2025 (UTC)
- Alternatively, this script could easily be restricted to only applying to articles in draftspace and completely ignore redirect pages. guninvalid (talk) 23:43, 13 December 2025 (UTC)
- Thumb_up monkeysmashingkeyboards (talk) 00:38, 14 December 2025 (UTC)
- Couldn't
This would prevent editors removing AfC declines in draftspace (which is equivalent to setting 1370 to disallow) and they could only remove them in mainspace
be fixed with just asetTimeout? (See https://github.com/potatolover68/KeyboardSmashingRobot/pull/2) monkeysmashingkeyboards (talk) 20:21, 14 December 2025 (UTC)- I don't think that's a viable option either. As I said above, users are not required to go through the AfC process, reinstating the template after they have chosen to remove them seems a bit similar to readding warnings to a user's talk page after the user removes them, as well as pushing them to go through AfC even though they are not obligated to. Tenshi! (Talk page) 20:35, 14 December 2025 (UTC)
- I am going to recuse from acting a BAG here, because I'm going to put on my AFC hat and echo the above comments; AFC is not mandatory, there are a whole host of reasons why someone would want to remove the submission template, and not all of them require restoration of said template. If you want to start a discussion at WT:AFC by all means do so but at current I would not support this task. Primefac (talk) 20:47, 14 December 2025 (UTC)
File:Symbol delete vote darkened.svg Denied. It seems clear there is not consensus for this bot task. Should consensus be established at some later point, a new BRFA may be created with links to the relevant discussion. Anomie⚔ 20:56, 14 December 2025 (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 Wikipedia:Bots/Noticeboard.