Merge 27d40e276f5a032f70b8e0dc5fac097c1aebd34e into c4157a4d5b49fce79c80a30730dc7c404bacd663

This commit is contained in:
icez 2024-08-29 12:28:16 +03:00 committed by GitHub
commit 00cd53150a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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: