JonnyPtn / zomboi

A discord bot for project zomboid multiplayer servers
50 stars 33 forks source link

Users command can exceed discords maximum message length #8

Closed Reagy closed 5 months ago

Reagy commented 2 years ago

If the length of the message exceeds 4k characters, discord refuses the message with a HTTP 400 error. Currently the command wont work on servers with more than a few players as it goes over the limit.

Solution would be to split the message into multiple if it exceeds the 4k character length.

JonnyPtn commented 2 years ago

Yeah this is a problem I've come across too and need to fix, thanks!

I'll also probably look at reformatting the message so it uses less characters (currently the generated table has a bunch of extra fluff)

Yell420 commented 2 years ago

was going to report this same issue.. glad its been reported

JonnyPtn commented 2 years ago

@Yell420 @Reagy are you able to test with the fix in #32 ? My server doesn't have enough players to hit the limit

ftzero commented 2 years ago

There is a 2000 character problem when using the !info command.

Is there an update for this?

JonnyPtn commented 5 months ago

This should be working in latest version of the bot