RallyRound Feature Support #9
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the Discord side of the RallyRound live speaker management system, addressing Issues #3-8. It enables Discord users to participate in structured meetings with speaker queues, hand-raising, parliamentary signals, and real-time synchronization with the RallyRound web dashboard.
Key Features:
/rr) for all interactionsChanges
1. Discord OAuth Provider (Issue #3)
GET /auth/discord- Initiates OAuth flow with CSRF protectionGET /auth/discord/callback- Exchanges code for JWT token (24h expiry)GET /auth/validate- Validates tokens for RallyRound integrationGET /auth/user- Returns authenticated user profile2. RallyRound API Client (Issue #4)
3. Discord Slash Commands (Issue #5)
Native slash commands using
@discordjs/builders:/rr start title:"..."/rr end,pause,resume/rr mode mode:structured/rr record action:start/rr next,speaker user:@.../rr hand,point type:order/rr agree,disagree/rr agenda,agenda-add item:"..."/rr sfx action:on4. Voice Channel Presence Tracking (Issue #6)
voiceStateUpdateevents5. Webhook Receiver (Issue #7)
POST /webhooks/rallyroundendpointsignal_raised,speaker_changed,mode_changed,recording_changed,agenda_advanced,session_ended6. Sound Effect Playback (Issue #8)
@discordjs/voiceintegrationNew Dependencies
@discordjs/voice- Voice channel audiojsonwebtoken- JWT signing/verificationdrizzle-orm,better-sqlite3- Database (ready for future use)Environment Variables