1
0
forked from lug/matterbridge

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

@@ -116,7 +116,7 @@ func (b *Bdiscord) handleEventWebhook(msg *config.Message, channelID string) (st
return "", nil
}
msg.Text = helper.ClipMessage(msg.Text, MessageLength)
msg.Text = helper.ClipMessage(msg.Text, MessageLength, b.GetString("MessageClipped"))
msg.Text = b.replaceUserMentions(msg.Text)
// discord username must be [0..32] max
if len(msg.Username) > 32 {