Commons:Bots/Requests/BulbaBot 4

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

BulbaBot (talk · contribs) 4

Operator: Pokéfan95 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Adding {{subst:unc}} in uncategorized categories (I don't know if a bot is already doing this, but considering Special:UncategorizedCategories, I think there is none doing it)

Automatic or manually assisted: Automatic, unsupervised

Edit type (e.g. Continuous, daily, one time run): Daily

Maximum edit rate (e.g. edits per minute): maxlag:5

Bot flag requested: (Y/N): Y

Programming language(s): pywikibot

This is my first time to use pywikibot, but I now understand "add_text.py". Test run already done. Poké95 07:16, 25 February 2016 (UTC)[reply]

Discussion

  •   While Pokéfan95 has good intentions and this is indeed a good task, the operator has not demonstrated this bot can be trusted to be run daily and unsupervised as requested. As shown[1][2][3][4] and as aforementioned, the bot is not even checking to see if another user has already added the template, or if the bot has already added the template (which is even more important, because Special:UncategorizedCategories isn't updated daily) I know that these issues can be resolved, but it puts a bad taste in my mouth to see an operator submit test edits to be reviewed without even reviewing them himself. Riley Huntley (talk) 07:35, 25 February 2016 (UTC)[reply]
@Riley Huntley: I also noticed that, but I have made a solution by adding -except:"\{\{([Uu]ncategorized:|)". This ignores categories that have been already been marked as {{Uncategorized}}. Honestly, the mistakes made by my bot above was not yet added with -except:"\{\{([Uu]ncategorized:|)", so that's why it still added {{subst:unc}} on those that have been already marked as {{Uncategorized}}. I will do another test run again, and you will see that the simple solution I made ignores categories that have been already been marked as {{Uncategorized}}. And BTW, I don't process pages from Special:UncategorizedCategories (I mentioned it to use it as an example that an approved bot is not working on those categories yet), I used the -uncatcat parameter. Thanks, Poké95 08:03, 25 February 2016 (UTC)[reply]
@Riley Huntley: Test run is ✓ Done. -- Poké95 08:07, 25 February 2016 (UTC)[reply]
I was going to respond with "Alright, that fixes the one issue, what about the next?" but from the looks of it, your regex isn't even correct. I'm not trying to pick on you, but a BRFA is putting your bot up for review, and from what I've seen, you have not prepared. \{\{([Uu]ncategorized:|) will skip every page with "{{" Riley Huntley (talk) 08:09, 25 February 2016 (UTC)[reply]

Commons needs more contributors interested in automation, but it does take a long time to become good with these tools. I suggest you take a break from trying to get the bot flag, and spend a couple of months experimenting and doing smaller tasks. Stuff wanted pops up on Commons:Bots/Work_requests and that is also a good place to get feedback on how to best test automation. You can try testing any jobs on http://commons.wikimedia.beta.wmflabs.org as a fully functioning sandbox environment. -- (talk) 14:15, 25 February 2016 (UTC)[reply]


Declined per discussion. --Krd 08:28, 29 February 2016 (UTC)[reply]