Repository navigation
Discord chat: a starboard for messages that collect enough ⭐ - #451
Conversation
Every 2 minutes the forum reads the last 50 messages of each channel listed in discord_chat_starboard_channels and reposts, once, any that reached discord_chat_starboard_threshold ⭐ (3 by default) into discord_chat_starboard_channel_id: author, text, first image and a link back, pinging nobody. Only listed channels are read, so a starred message in a private channel the bot can see never reaches members. Bot messages and messages older than 7 days are skipped. Off until a starboard channel is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 810537eaf9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| PluginStore.set(STORE, key(message["id"]), true) | ||
| @api.bot(:post, "/channels/#{target}/messages", repost(message, channel_id)) |
There was a problem hiding this comment.
Record completion only after Discord accepts the repost
When the POST is rate-limited or fails with another Discord API error, this row has already been stored, while the scheduled job catches the exception and returns. On every later run the message is therefore treated as done and is never reposted, even after the transient failure clears; persist the marker only after a successful POST.
Useful? React with 👍 / 👎.
Re-opened from #448.
Every 2 min, reads the last 50 messages of the allowlisted channels (
discord_chat_starboard_channels) and reposts once any with ≥ threshold ⭐ todiscord_chat_starboard_channel_id, no pings. Skips bots and >7-day-old messages. Off until a channel is set.🤖 Generated with Claude Code
https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs