SwitchbladeBot / switchblade

The open source Discord bot that solves all of your problems.
https://switchblade.xyz/
BSD 4-Clause "Original" or "Old" License
426 stars 220 forks source link

Add lorem command #1359

Closed ghost closed 2 years ago

ghost commented 2 years ago

Add a new command which generates random lorem text

Closes #1341

Edit: Not again! All my previous commit came in the way :(

almeidx commented 2 years ago

Just to clarify: I didn't say to change the parameter to words instead of paragraphs. What I was saying is that if the generated had more than 4096 characters then it would throw an error.

ghost commented 2 years ago

Then I must have misunderstood. So I should check if the return string has more than 4096, if yes, then throw a command error?

metehus commented 2 years ago

Then I must have misunderstood. So I should check if the return string has more than 4096, if yes, then throw a command error?

If the string has more than 4096 characters, it should slice it in order to keep it only 4096 characters, because otherwise discord will throw an error. I did that on the suggestion i requested

ghost commented 2 years ago

Thanks!