Skip to content

Keep Twitter posting when Discord login fails. - #756

Merged
mattetre merged 1 commit into
mainfrom
cursor/decouple-discord-twitter
Oct 13, 2026
Merged

mattetre merged 1 commit into
mainfrom
cursor/decouple-discord-twitter

Conversation

@mattetre

@mattetre mattetre commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

OpenSea listeners now start without waiting for Discord, and a down Discord or Twitter destination logs an alert instead of exiting the process.


Note

Medium Risk
Changes production startup order and removes process exit on Discord login failure, which affects how outages surface but improves feed availability; new alert fields need Datadog monitor alignment.

Overview
Decouples OpenSea/Twitter from Discord login so a failed or slow Discord connection no longer stops sale/mint feeds or exits the process.

startProductionBots now starts the OpenSea WebSocket stream and REST sales poll immediately; Discord login runs in the background via maintainDiscordLogin with unbounded retries (no process.exit on login failure). ScheduleBot still starts only when the Discord client fires ready.

Posting is per-destination: activityTriager skips Discord embeds when the client is not ready; MintBot keeps processing the queue and posts to Twitter even if Discord is down; OpenSeaSaleBot isolates Discord errors so Twitter sale tweets still run.

New destinationHealth helpers emit alert:destination_down / alert:destination_recovered (with a 15-minute heartbeat while down) for Discord and Twitter, wired into login, shard errors, and TwitterBot post failures. AGENTS.md and bot rules are updated to match.

Reviewed by Cursor Bugbot for commit 18aeeaa. Bugbot is set up for automated code reviews on this repo. Configure here.

OpenSea listeners now start without waiting for Discord, and a down Discord or Twitter destination logs an alert instead of exiting the process.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mattetre
mattetre marked this pull request as ready for review October 13, 2026 15:20
@mattetre
mattetre requested a review from a team as a code owner October 13, 2026 15:20
@mattetre
mattetre requested a review from lindsgil October 13, 2026 15:20

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 18aeeaa. Configure here.

Comment thread src/Classes/MintBot.ts Resolved
@mattetre
mattetre enabled auto-merge October 13, 2026 15:44
@mattetre
mattetre disabled auto-merge October 13, 2026 15:44
@mattetre
mattetre merged commit 57f18f2 into main Oct 13, 2026
6 checks passed
@mattetre
mattetre deleted the cursor/decouple-discord-twitter branch October 13, 2026 15:44
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.

2 participants