Skip to content

Only deliver EQNotify alerts to active Raiders#264

Merged
ebm5025 merged 1 commit into
mainfrom
claude/eqnotify-castle-bot-integration-5c7l4s
Jul 24, 2026
Merged

Only deliver EQNotify alerts to active Raiders#264
ebm5025 merged 1 commit into
mainfrom
claude/eqnotify-castle-bot-integration-5c7l4s

Conversation

@ebm5025

@ebm5025 ebm5025 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #263 (EQNotify). Gates batphone dispatch on the subscriber currently holding the Raider role, checked live against Discord at push time.

A subscriber who loses the role (goes inactive, leaves the guild, etc.) stops receiving alerts without having to unregister. Members that can't be resolved (e.g. they've left) are treated as non-Raiders and skipped.

Changes

  • dispatch() now resolves each tag-matching subscriber via getMember() and only delivers if they hold raiderRoleId. Failures to resolve are fail-closed.
  • Scope: applies only to the batphone dispatch path. The manual /eqnotify test command is intentionally unaffected, since it's a self-check that a user's device/chat ID works.
  • Surfaced the requirement in the /eqnotify register confirmation and the README.

Testing

  • yarn tsc — clean.
  • yarn test:ci (eqnotify matcher suite) — 11 tests pass.

🤖 Generated with Claude Code


Generated by Claude Code

Gate batphone dispatch on the subscriber currently holding the Raider role,
checked live against Discord at push time. A subscriber who loses the role
(goes inactive, leaves the guild) stops receiving alerts without needing to
unregister; unresolvable members are treated as non-Raiders. The manual
/eqnotify test path is intentionally unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXRmPbtEz35wquwFd8Cu7
@ebm5025
ebm5025 merged commit 3e4a281 into main Jul 24, 2026
1 check passed
@ebm5025
ebm5025 deleted the claude/eqnotify-castle-bot-integration-5c7l4s branch July 24, 2026 15:15
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