Skip to content

feat: tidy every quiet announcement, reminder and banter, not just yesterday's banter - #194

Merged
ChristopherPHolder merged 1 commit into
mainfrom
f/tidy-all-notices
Nov 22, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
f/tidy-all-notices

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

Closes #193

The morning tidy from #159 only looked at yesterday's banter. Opened, Emptied and Reminder posts were never deleted, and neither was banter from before the tidy shipped or from a morning the bot was down. In production that's 44 Opened, 45 Emptied, 23 Reminders and 54 bits of banter still in the channel.

What changes

  • At 08:45 office time the bot now looks at every Opened, Emptied, Reminder and Banter post of its own that's still in Slack (deleted_at IS NULL) and was posted before that day, with no lower bound. It deletes the ones with no reactions and no replies, by the same rule as before.
  • A kept post, or one Slack failed on, is looked at again the next morning.
  • Recording summaries and replies in threads are never touched.
  • QuietBanter is now QuietPosts, and SlackHistory.banterInSlackBetween(from, until) is now tidiedPostsInSlackBefore(until). The domain term in CONTEXT.md changes from quiet banter to quiet post.
  • The docs get a Tidying up section in docs/slack.md instead of the banter subsection, and the README, architecture, database and operations docs are updated to match.

First run

The first morning catches up on the backlog, about 160 posts, each one reactions.get + conversations.replies + chat.delete, one after another. The Slack client already retries rate limits after Slack's Retry-After, and anything that still fails is tried again the next morning.

No new Slack scopes, no migration.

…sterday's banter

The morning tidy only looked at the banter from the day before, so the
Opened, Emptied and Reminder posts stayed in the channel for good, and so
did the banter from before the tidy shipped or from a morning the bot was
down.

At 08:45 office time it now looks at every Opened, Emptied, Reminder and
Banter post of its own that's still in Slack and was posted before that
day, and deletes the ones with no reactions and no replies, by the same
rule as before. A kept post or one Slack failed on is looked at again the
next morning. Recording summaries and replies in threads are never
touched. The first run catches up on the backlog; the Slack client already
waits out rate limits.

Closes #193
@ChristopherPHolder
ChristopherPHolder merged commit 2cb48c6 into main Nov 22, 2026
3 checks passed
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.

Delete every quiet announcement, reminder and banter, not just yesterday's banter

1 participant