Feature: Add Discord mention_only option for @-mention only responses#313
Closed
vernonstinebaker wants to merge 2 commits intosipeed:mainfrom
Closed
Feature: Add Discord mention_only option for @-mention only responses#313vernonstinebaker wants to merge 2 commits intosipeed:mainfrom
vernonstinebaker wants to merge 2 commits intosipeed:mainfrom
Conversation
- 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
b3a6fe4 to
dc85d09
Compare
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
mention_onlyconfig option to Discord channel to only respond when @-mentionedbotUserIDfield to track bot's user ID for mention detectionChanges
pkg/config/config.go: AddMentionOnly booltoDiscordConfigpkg/channels/discord.go: Add mention checking logic inhandleMessagedocker-compose.yml: Addnetwork_mode: hostto both servicesUsage
{ "channels": { "discord": { "enabled": true, "token": "YOUR_BOT_TOKEN", "mention_only": true } } }When
mention_only: true, the bot will only respond when @-mentioned in Discord.