Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'ReplyBroadcast' option to Slack Bridge #2163

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bridge/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ type Protocol struct {
RejoinDelay int // IRC
ReplaceMessages [][]string // all protocols
ReplaceNicks [][]string // all protocols
ReplyBroadcast bool // slack
RemoteNickFormat string // all protocols
RunCommands []string // IRC
Server string // IRC,mattermost,XMPP,discord,matrix
Expand Down
1 change: 1 addition & 0 deletions bridge/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ func (b *Bslack) prepareMessageOptions(msg *config.Message) []slack.MsgOption {
params.LinkNames = 1 // replace mentions
params.IconURL = config.GetIconURL(msg, b.GetString(iconURLConfig))
params.ThreadTimestamp = msg.ParentID
params.ReplyBroadcast = b.GetBool("ReplyBroadcast")
if msg.Avatar != "" {
params.IconURL = msg.Avatar
}
Expand Down
5 changes: 5 additions & 0 deletions matterbridge.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,11 @@ ReplaceMessages=[ ["cat","dog"] ]
#optional (default empty)
ReplaceNicks=[ ["user--","user"] ]

# ReplyBroadcast indicates whether reply should be made visible to everyone in the channel or conversation.
ู# Function [] Also sent to #channel
#optional (default false)
ReplyBroadcast=false

#Extractnicks is used to for example rewrite messages from other relaybots
#See https://github.com/42wim/matterbridge/issues/713 and https://github.com/42wim/matterbridge/issues/466
#some examples:
Expand Down