feat: add free_response_channels support for Discord#942
Open
Hypn0sis wants to merge 4 commits intoRightNow-AI:mainfrom
Open
feat: add free_response_channels support for Discord#942Hypn0sis wants to merge 4 commits intoRightNow-AI:mainfrom
Hypn0sis wants to merge 4 commits intoRightNow-AI:mainfrom
Conversation
Allow certain Discord channel IDs to respond without requiring @mention, similar to Hermes gateway's free_response_channels. - Add free_response_channels field to DiscordConfig - Add free_response_channels method to ChannelBridgeHandle trait - Implement free_response_channels in KernelBridgeAdapter - Modify dispatch_message to bypass mention_only policy for free channels - Add test for free_response_channels deserialization
|
Quick feedback from the community: |
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.
Summary
free_response_channelsfield toDiscordConfig— channel IDs that respond without requiring@mentionfree_response_channelsmethod toChannelBridgeHandletrait (default: empty vec)free_response_channelsinKernelBridgeAdapterdispatch_messageto bypassmention_onlypolicy when the message comes from a free-response channelUsage
Test plan
cargo test --workspacepasses (includes new deserialization test)group_policy = "mention_only"ignores non-mentions in normal channelsfree_response_channelswithout requiring@mention