route status updates to group channels - #107
Open
Khushal928 wants to merge 9 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the status-update mirroring task so Discord status updates are routed to group-specific channels (based on group_id) instead of track-specific channels.
Changes:
- Simplifies channel routing logic to select a destination channel by
group(1–4), with a fallback to the default status channel.
Suppressed comments (1)
src/tasks/status_update_mirror.rs:181
- After removing the track-based routing arms,
AI_STATUS_UPDATE_CHANNEL_ID,WEB_STATUS_UPDATE_CHANNEL_ID,MOBILE_STATUS_UPDATE_CHANNEL_ID, andSYSTEMS_STATUS_UPDATE_CHANNEL_IDappear to be unused in this file (only imported). Please remove these from theuse crate::ids::{...}list to avoid unused-import warnings and keep the import list accurate.
let channel_id = match (track.as_str(), group) {
(_, 1) => GROUP_ONE_STATUS_UPDATE_CHANNEL_ID,
(_, 2) => GROUP_TWO_STATUS_UPDATE_CHANNEL_ID,
(_, 3) => GROUP_THREE_STATUS_UPDATE_CHANNEL_ID,
(_, 4) => GROUP_FOUR_STATUS_UPDATE_CHANNEL_ID,
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
route status updates to group channels instead of tracks