4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-27 06:29:24 +00:00

Add a MessageClipped option to set your own clipped message. Closes #1359 (#1487)

This commit is contained in:
Wim
2021-05-27 21:45:23 +02:00
committed by GitHub
parent efec01a92f
commit c86137449e
8 changed files with 124 additions and 105 deletions

View File

@ -195,7 +195,7 @@ func (b *Bslack) Send(msg config.Message) (string, error) {
b.Log.Debugf("=> Receiving %#v", msg)
}
msg.Text = helper.ClipMessage(msg.Text, messageLength)
msg.Text = helper.ClipMessage(msg.Text, messageLength, b.GetString("MessageClipped"))
msg.Text = b.replaceCodeFence(msg.Text)
// Make a action /me of the message