Skip to content

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

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

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

Dayz-tech-co and others added 2 commits October 23, 2026 23:36
Closes mimir-stellar#455

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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

2 participants