Skip to content

Improve pet posting logic to not post the same pet #73

@binamkayastha

Description

@binamkayastha

Currently a random pet is chosen from the data to post. We want to improve this logic by not posting the same pet within the last 180 pets or so. This requirement comes from a recommendation for instagram bots to never use the same caption more than once a month (6 posts a day, 30 days a month = the last 180 posts that have to be unique)

https://cfb-public.slack.com/archives/C0A742DF1SP/p1775001985768289

  • Never using the same caption more than once per month

Acceptance Criteria:

  • Every time a post is made, the pet id is stored somewhere (to be deterimined)
  • The list of the last 180 pet ids is stored somewhere, and a random pet whose id is not yet picked is chosen

Open questions:

  • Can we use github actions to update github secrets/values and use that?
  • What should we do if a new unique pet is not found? Should we post or skip?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions