fix: does nothing

This commit is contained in:
ChomeNS
2024-12-18 20:10:15 +07:00
parent cdaa625962
commit c504918571
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
1286
1287

View File

@@ -95,7 +95,7 @@ public class DiscordPlugin {
bot.chat.addListener(new ChatPlugin.Listener() {
@Override
public boolean systemMessageReceived (Component component, String string, String _ansi) {
if (string.length() > 2048) {
if (string.length() > 2000 - 12) {
sendMessage(CodeBlockUtilities.escape(string), channelId);
} else {
final String ansi = ComponentUtilities.stringifyAnsi(component, true);