Skip to content

Feature: Add Discord mention_only option for @-mention only responses#313

Closed
vernonstinebaker wants to merge 2 commits intosipeed:mainfrom
vernonstinebaker:feature/discord-mention-only
Closed

Feature: Add Discord mention_only option for @-mention only responses#313
vernonstinebaker wants to merge 2 commits intosipeed:mainfrom
vernonstinebaker:feature/discord-mention-only

Conversation

@vernonstinebaker
Copy link

Summary

  • Add mention_only config option to Discord channel to only respond when @-mentioned
  • Add botUserID field to track bot's user ID for mention detection
  • Add network_mode: host to docker-compose for better connectivity

Changes

  • pkg/config/config.go: Add MentionOnly bool to DiscordConfig
  • pkg/channels/discord.go: Add mention checking logic in handleMessage
  • docker-compose.yml: Add network_mode: host to both services

Usage

{
  "channels": {
    "discord": {
      "enabled": true,
      "token": "YOUR_BOT_TOKEN",
      "mention_only": true
    }
  }
}

When mention_only: true, the bot will only respond when @-mentioned in Discord.

- Add MentionOnly config option to DiscordConfig
- Add botUserID tracking in DiscordChannel
- Add mention checking logic in handleMessage
- Add network_mode: host to docker-compose for connectivity
@vernonstinebaker vernonstinebaker force-pushed the feature/discord-mention-only branch from b3a6fe4 to dc85d09 Compare February 16, 2026 14:33
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.

1 participant