Skip to content

feat: add free_response_channels support for Discord#942

Open
Hypn0sis wants to merge 4 commits intoRightNow-AI:mainfrom
Hypn0sis:feat/discord-free-response-channels
Open

feat: add free_response_channels support for Discord#942
Hypn0sis wants to merge 4 commits intoRightNow-AI:mainfrom
Hypn0sis:feat/discord-free-response-channels

Conversation

@Hypn0sis
Copy link
Copy Markdown

Summary

  • Add free_response_channels field to DiscordConfig — channel IDs that respond without requiring @mention
  • Add free_response_channels method to ChannelBridgeHandle trait (default: empty vec)
  • Implement free_response_channels in KernelBridgeAdapter
  • Modify dispatch_message to bypass mention_only policy when the message comes from a free-response channel
  • Add deserialization test for the new field

Usage

[channels.discord]
group_policy = "mention_only"
free_response_channels = ["123456789", "987654321"]  # these channels respond freely

Test plan

  • cargo test --workspace passes (includes new deserialization test)
  • Bot in a Discord group with group_policy = "mention_only" ignores non-mentions in normal channels
  • Bot responds to all messages in channels listed under free_response_channels without requiring @mention

hello-world-bfree and others added 4 commits March 30, 2026 22:11
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
@Jengro777
Copy link
Copy Markdown

Quick feedback from the community:
https://github.com/librefang/librefang

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.

4 participants