Wikipedia:Bots/Requests for approval/RelistBot


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol neutral vote.svg Request Expired.

RelistBot
Operator: Daniel (talk)

Automatic or Manually Assisted: Automatic

Programming Language(s): Perl

Function Summary: Relists AfD's (see ) upon being triggered to do so by an administrator.

Edit period(s) (e.g. Continuous, daily, one time run): continuous, set to run once every five minutes.

Already has a bot flag (Y/N): N

Function Details: Relisting AfD's is one of the most tedious tasks when clearing out an AfD log for a particular day. It involves placing on the discussion page itself, loading the massive daily log page, detranscluding the discussion, and then retranscluding the discussion on the current daily log page. As such, I plan to develop a bot which will do all these steps for administrators, which will certainly assist those on slow connections who struggle to load the daily log page.

For this example, assume the page Storm was nominated for AfD on June 2, and is being relisted today, June 8. The methodology is as follows:


 * Step 1: Administrators will edit User:RelistBot/relist.js and paste the following:
 * * Articles for deletion/Storm  
 * ...below a triggerline.


 * Step 2: Every five minutes, the bot will run and parse lines such as the one above. It will then edit User:RelistBot/relist.js to remove the line added by the administrator, with the edit summary "Relisting Articles for deletion/Storm ".


 * Step 3: The bot will then use Special:Whatlinkshere to identify which daily AfD log the page is on; in this case, Articles for deletion/Log/2008 June 2. It will then edit that page and comment out the transclusion, as so:
 *  
 * ...using the edit summary "Relisting Articles for deletion/Storm "


 * Step 4: The bot will then go to today's log (in this example, Articles for deletion/Log/2008 June 8), and add the following line to the bottom of the page:
 *  
 * ...with the edit summary "Relisting Articles for deletion/Storm ".


 * Step 5: The bot will edit Articles for deletion/Storm itself, updating the "View log" link to the new date (ie. 2008 June 8), and adding the following to the bottom of the page:
 *  
 * ...where " " is the signature and timestamp which was left by the administrator on User:RelistBot/relist.js (see Step 1); using the edit summary "Relisted".


 * Step 6: The bot will then add a listing to User:RelistBot/Archive/cyear, with "cyear" being the current year, ie. 2008, with the following line:
 *  Articles for deletion/Storm relisted by 
 * ...with edit summary "Adding Articles for deletion/Storm listing to archive".

Discussion
Looks fairly good to me, the outline is one of the best I've seen on a BRFA to be honest! Has the code been developed as yet? — E  ↗TCB 06:41, 25 June 2008 (UTC)
 * No, not as yet - I want to get suggestions/the green light before creating it :) Daniel (talk) 06:53, 25 June 2008 (UTC)
 * I see, well it has my support for a trial after the code has been created. — E  ↗TCB 07:06, 25 June 2008 (UTC)

Is it possible to program it to do the relisting process when someone adds relist to an AfD? (Perhaps maintain a whitelist of non admins or something like that to prevent abuse...) giggy (O) 08:05, 25 June 2008 (UTC)
 * I don't think so, because it will be subst'ed and has no associated category. Daniel (talk) 03:12, 26 June 2008 (UTC)
 * OK. I'm happy for a trial. giggy (O) 03:28, 26 June 2008 (UTC)

It would also be nice if it changed the "View log" link on the AFD page so clicking it will take you to the correct log instead of the original one. The link looks like  Mr.Z-man 20:40, 25 June 2008 (UTC)
 * Can do (added to Step 5). Daniel (talk) 03:12, 26 June 2008 (UTC)
 * You might want to post to AN when you're ready to start. Mr.Z-man 20:14, 4 July 2008 (UTC)

BJ Talk 06:45, 22 July 2008 (UTC)

BJ Talk 06:06, 25 July 2008 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.