Java-Discord / JavaBot

General utility bot for the Discord Java Community
https://discordjug.net/
GNU General Public License v3.0
48 stars 23 forks source link

Bug: Changemymind api (nekobot.xyz) is crashing when too many characters are provided #295

Closed liquiddevelopmentnet closed 2 years ago

liquiddevelopmentnet commented 2 years ago

The API our Bot uses for the meme- image generation (https://nekobot.xyz/) crashes with HTTP CODE 501 when the text provided is too long, which results in a empty reply from the bot.

Steps to reproduce: GET https://nekobot.xyz/api/imagegen?type=changemymind&text={Text with 2000 characters}

File where this should be fixed

danthe1st commented 2 years ago

Note that some unicode codepoints (like flagemojis) consist of multiple characters.