ErdbeerbaerLP / DiscordIntegration-Forge

Forge version of the Discord Integration mod
https://modrinth.com/plugin/dcintegration
MIT License
99 stars 56 forks source link

To many dimensions breaks /tps[BUG] #257

Closed Ki-Tan2934 closed 3 years ago

Ki-Tan2934 commented 3 years ago

What happened? -Does not display the tps

What should happen? -Display the TPS

Steps to reproduce

Platform

Mod version:

jeremiahwinsley commented 3 years ago

Additional info - this message is displayed in console:

[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]: java.lang.IllegalArgumentException: Content may not exceed 2000 characters!
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at dcshadow.club.minnced.discord.webhook.send.WebhookMessageBuilder.setContent(WebhookMessageBuilder.java:182)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord$DCMessage.buildWebhookMessage(Discord.java:960)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord.sendMessage(Discord.java:366)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord.sendMessage(Discord.java:409)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord.sendMessage(Discord.java:435)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord.sendMessage(Discord.java:431)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord$2.lambda$run$0(Discord.java:195)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at java.base/java.util.HashMap.forEach(HashMap.java:1336)
[21:35:52] [[DC INTEGRATION] Discord Command Message Sender/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:sendMessage:379]:  at de.erdbeerbaerlp.dcintegration.Discord$2.run(Discord.java:191)
Ki-Tan2934 commented 3 years ago

So bot needs to be able to do multi messages

ErdbeerbaerLP commented 3 years ago

Can you try if the message splitting works with this version? https://www.curseforge.com/minecraft/mc-mods/dcintegration/files/3308615

Reinitialized commented 3 years ago

Can confirm 2.2.0 fixes issue. Bot now appropriately spams my channel with 2000+ character responses :)