Skip to content

Avoid duplications in !xkcd #557

Description

@nicklambourne

When xkcd skips a day or is late our bot reposts the last comic, leading to duplication and groaning.

Fix by storing the most recently published comic number in the postgres DB and querying it before posting. If the number exists, don't post that day. This should also help us be more up to date as we can check more regularly against the stored number than we have based solely on cron.

Metadata

Metadata

Assignees

Labels

bugcommittee-onlyDue to access requirements only committee or those with access to the server can fix these bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions