4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-08-20 21:07:08 +00:00

Split messages if necessary (discord) (#2124)

* Implement and test byte-splitting helper function

* Implement discord botuser message splitting

* Implement discord webhooks message splitting
This commit is contained in:
Ben Wiederhake
2024-05-24 00:14:45 +02:00
committed by GitHub
parent 0bb521512a
commit 4bf1c0450c
6 changed files with 264 additions and 83 deletions

View File

@@ -121,6 +121,7 @@ type Protocol struct {
MessageLength int // IRC, max length of a message allowed
MessageQueue int // IRC, size of message queue for flood control
MessageSplit bool // IRC, split long messages with newlines on MessageLength instead of clipping
MessageSplitMaxCount int // discord, split long messages into at most this many messages instead of clipping (MessageLength=1950 cannot be configured)
Muc string // xmpp
MxID string // matrix
Name string // all protocols