Skip to content

Discord chat: a starboard for messages that collect enough ⭐ - #451

Merged
TripleU613 merged 1 commit into
mainfrom
discord-chat/starboard-main
Nov 25, 2026
Merged

TripleU613 merged 1 commit into
mainfrom
discord-chat/starboard-main

Conversation

@TripleU613

Copy link
Copy Markdown
Owner

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 ⭐ to discord_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

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T19:19:27.075635Z 810537e PR opened
🔒 Security Review ✅ Completed 2026-11-25T19:21:31.675440Z 810537e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +31 to +32
PluginStore.set(STORE, key(message["id"]), true)
@api.bot(:post, "/channels/#{target}/messages", repost(message, channel_id))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@TripleU613
TripleU613 merged commit 56e6901 into main Nov 25, 2026
8 checks passed
@TripleU613
TripleU613 deleted the discord-chat/starboard-main branch November 25, 2026 19:31
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