Skip to content

feat(bot): route events to forum topics by category - #733

Closed
harmondconsultant-png wants to merge 2 commits into
mimir-stellar:mainfrom
harmondconsultant-png:feat/forum-topic-routing
Closed

harmondconsultant-png wants to merge 2 commits into
mimir-stellar:mainfrom
harmondconsultant-png:feat/forum-topic-routing

Conversation

@harmondconsultant-png

@harmondconsultant-png harmondconsultant-png commented Oct 23, 2026 •

Copy link
Copy Markdown

Closes #455

Adds src/notifications/topics.ts (parse claims:12,resolutions:15,squad:20, resolve category to thread id, derive category from event name), a validated TELEGRAM_TOPIC_MAP setting (invalid mappings fail config load), and message_thread_id from createNotifier only when mapped (otherwise payload unchanged). The poller sets extra.category (resolutions for claim_resolved/market_settled/resolved, claims for other claim_* events, else the contract source). Key registered in config-cli and provenance. Tests: tests/forum-topics.test.mjs.

Verification (honest): npm ci succeeded on Node 20. npm run typecheck FAILS with 42 syntax errors in src/bot.ts and src/notifications/format.ts (e.g. a duplicated case "claim_created" at format.ts:406-408), files this PR does not touch, so main appears already broken. Because the build fails, tests were not run. No errors are reported in files changed here, but syntax errors may mask semantic checks.

?? Generated with Claude Code

@drips-wave

drips-wave Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Possible malicious code: please review before merging.

An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch.

Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file.

@harmondconsultant-png: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine might be compromised. Please undo these changes in this pull request, and don't open or run other projects on that machine until you've checked it.

Flagged files at commit b83d607:

Only merge once you're confident these files are safe.

ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network.

@enliven17 enliven17 closed this Nov 11, 2026
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.

feat(bot): route events to forum topics by category

3 participants