MagiBridge icon indicating copy to clipboard operation
MagiBridge copied to clipboard

BridgeCommandSource quickly hits rate limits

Open embeddedt opened this issue 3 years ago • 1 comments

Is it possible to implement some type of merging logic in BridgeCommandSource which joins multiline messages and sends them as one message in Discord? Currently, using the command relay feature results in rate limits quickly being reached because each chunk of the command's response is sent as a separate message.

I think the relevant logic would need to go here - happy to take a stab at this if you want!

https://github.com/Eufranio/MagiBridge/blob/bc290183061d646c19a5768a0a7eb32148e3ed66/src/main/java/com/magitechserver/magibridge/util/BridgeCommandSource.java#L53-L58

embeddedt avatar Jun 03 '21 01:06 embeddedt