Skip to content

feat: Flickrreview bot for Flickypedia uploads#88

Open
DaxServer wants to merge 2 commits intomainfrom
feat/flickrreview-bot
Open

feat: Flickrreview bot for Flickypedia uploads#88
DaxServer wants to merge 2 commits intomainfrom
feat/flickrreview-bot

Conversation

@DaxServer
Copy link
Copy Markdown
Owner

Adds a new bot (flickrreview) that tags Flickypedia-uploaded files missing the {{Flickrreview}} template.

How it works:

  • Generator: incategory:"Uploads using Flickypedia" -hastemplate:Flickrreview
  • skip_page() skips files where FlickreviewR is already present or the bot has previously edited the page (both cached in Redis)
  • treat_page() inserts {{Flickrreview}} immediately before {{Uploaded with Flickypedia}}, collapsing any preceding blank line

BaseBot additions:

  • has_template(page, name) — checks for a template via prop=templates
  • has_user_edited(page) — checks edit history via prop=revisions&rvuser=...

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the FlickreviewrBot, a new bot designed to add the {{Flickrreview}} template to files uploaded via Flickypedia on Wikimedia Commons. The changes include updates to the documentation, dependency management, and the addition of helper methods in the base bot class for checking templates and previous edits. Feedback focuses on removing a hardcoded default username in the base class, cleaning up the edit summary for production, and utilizing existing helper methods for API calls to ensure consistency.

Comment thread src/wikibots/lib/bot.py
Comment thread src/wikibots/flickrreview.py Outdated
Comment thread src/wikibots/flickrreview.py Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant