Wikipedia:Bots/Requests for approval/Bot0612 8


 * 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.

User:Bot0612 8
Operator:  Richard 0612

Automatic or Manually Assisted: Automatic (supervised)

Programming Language(s): Python (using python-wikitools)

Function Overview: Update the new status parameter of bot, based on how recently the bot has edited.

Edit period(s): One first run to add the new parameter, then as-needed to keep it up-to-date

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

Function Details: Here's the outline of the logic the bot will use:
 * Get the transclusions of bot and get the first page
 * If the bot in question has edited in the last 6 months (182 days), add or update the status parameter to 'active'
 * If the bot has not edited in the last 6 months, or has no edits at all, add or update the status parameter to inactive
 * Next page

Discussion

 * This has been in consultation on WP:BON for approx. a fortnight now, and no-one has raised any conerns. - Jarry1250 (t, c) 12:21, 15 March 2009 (UTC)
 * Only one real bug, now fixed (my regexen were slightly broken, but it only showed up when editing a page that had already been processed; I may have gone over the 50 slightly due to fixing that bug, sorry!).  Richard 0612  13:39, 15 March 2009 (UTC)
 * I've also added in a line which will strip Category:Wikipedia bots and any manually-added status categories from any bot userpages it encounters. As bot automatically categorises bots into the new category, Category:Wikipedia bots by name, the old one may as well be deprecated while we're running through, and manually added status cats will duplicate those added by the template (thanks to Jarry1250 for the idea).  Richard 0612  14:11, 15 March 2009 (UTC) [edited 14:21, 15 March 2009 (UTC)]
 * With revised code. - Jarry1250 (t, c) 08:51, 16 March 2009 (UTC)
 * Checking the status of the second trial Q  T C 22:20, 25 March 2009 (UTC)

This user seems to have disappeared--no edits in the last month. Richard, if you come back, feel free to let me know and I'll reopen it. – Quadell (talk) 23:16, 15 April 2009 (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.