Wikipedia:Bots/Requests for approval/TenshiBot
[[User:TenshiBot|TenshiBot]]
{{Newbot|TenshiBot|}}
Operator: {{botop|Tenshi Hinanawi}}
Time filed: 22:26, Sunday, April 20, 2025 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Pywikibot
Source code available: [https://github.com/TenshiSWR/TenshiBot]
Function overview: Clerk RM/TR requests and notify users when their contested request has been removed from the page.
Links to relevant discussions (where appropriate): Wikipedia_talk:Requested_moves/Archive_35#Bot_to_clerk_RM/TR, Wikipedia_talk:Requested_moves/Archive_36#Re_the_clerking_bot_at_RMTR, Wikipedia:Bot requests#Clerk_Requested_Moves/Technical
Edit period(s): Twice per day (12 hour interval)
Estimated number of pages affected: ~5 a day
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details:
- Removes already completed requests from RM/TR.
- Removes contested requests that have been inactive for longer than 72 hours, and notifies the requester how they can start a requested move discussion (only if one hasn't been started on the article's talk page).
- Moves requests to the Administrator needed section if the request contains create-protected or move-protected pages.
=Discussion=
- {{u|Tenshi Hinanawi}} Thank you for doing this. I have some comments/feedback on the proposed setup:
- For :User:TenshiBot/RMTR_contested_notification, is it possible to add a parameter to revision id to point to them what request that was left hanging? i.e. Special:Permalink/1287442441#BOW? There may be someone who have requested multiple moves in batches and it is common to see that some of them gets processed and the others don't for whatever reason.
- For notify_requesters function, maybe improve it to group multiple requests if any. otherwise, the bot may spam one user's talk page in a single go if they had made multiple requests.
- For the frequency of the runs, I suggest a lower frequency, like once or twice a day. RM/TR, despite the backlog, isn't as bad as RFPP/I.
: That's all from me for now from me. – robertsky (talk) 01:43, 27 April 2025 (UTC)
::{{partlydone}} Requests are now grouped for notifications. Working on if requests can be permalinked in the template or similar. — Tenshi! (Talk page) 14:21, 27 April 2025 (UTC)
:::@Tenshi Hinanawi, Thanks! From {{tl|RMassist/core}}, it seems that permalink generation for the specific request is:
::::Is this intended to get their specific request from when they made it or their request before it would be removed by the bot from the page? — Tenshi! (Talk page) 20:55, 27 April 2025 (UTC)
:::::@Tenshi Hinanawi By before the bot removes the request from the page. In this manner, the requestor can tell if there had been discussions that may have occurred. Wikipedia:Requested moves/Technical requests/Permalink is a bot updated of the latest revision id of the RM/TR page. Of course you may not want to rely on this in case the bot update fails, and instead use the latest revision id of the page from the API. – robertsky (talk) 01:32, 28 April 2025 (UTC)
::::::{{done}} Added to template, code updated. — Tenshi! (Talk page) 18:24, 28 April 2025 (UTC)
:::::::Thanks~ I have no further inputs here. Let's wait for a BAG member to do their stuff here. :) – robertsky (talk) 00:41, 29 April 2025 (UTC)
{{Bot trial|days=7}} – DreamRimmer (talk) 14:43, 29 April 2025 (UTC)
:{{Bot trial complete}} [https://en.wikipedia.org/w/index.php?title=Special%3AContributions&target=TenshiBot&namespace=all&tagfilter=&start=2025-05-02&end=2025-05-08&limit=50 relevant contribs] Few issues with the bot initially regarding parsing of {{tlx|RMassist/core}} and wikilinks, properly detecting protections, and edit conflicts. Other than that, trial went well. — Tenshi! (Talk page) 17:58, 8 May 2025 (UTC)
::Did you fix the code for all the issues you mentioned? – DreamRimmer ◆ 15:12, 15 May 2025 (UTC)
:::Yes, the code was fixed during the trial. Tenshi! (Talk page) 15:15, 15 May 2025 (UTC)
----
{{re|Tenshi Hinanawi}} might want to troubleshoot Special:Diff/1288342319. If you would like more details, please feel free to ask. Thank you, Rotideypoc41352 (talk · contribs) 04:59, 2 May 2025 (UTC)
:Should be fixed. — Tenshi! (Talk page) 12:05, 2 May 2025 (UTC)
::Thanks! Rotideypoc41352 (talk · contribs) 21:11, 2 May 2025 (UTC)
Requester of Special:Permalink/1288464410#2YK has changed usernames. Will the bot post the notif on the current user talk? Rotideypoc41352 (talk · contribs) 21:11, 2 May 2025 (UTC)
:Yes, it would leave the notification on their current talk page (see [https://github.com/TenshiSWR/TenshiBot/blob/05069c07a32e0915bb6930d998869f5f9ae5fcb2/tasks/rmtr.py#L123-L125]). — Tenshi! (Talk page) 21:21, 2 May 2025 (UTC)
{{BotApproved}} Edits look good. Please keep an eye on the edits for some time, just in case anything comes up that needs fixing. – DreamRimmer ◆ 15:31, 15 May 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.