Basically - a command returns 13,000+ characters. I’m trying to limit it to 2,000, but can’t figure out how. The logs and code is posted below!
if(strlen($pets) > 2000) {
$Length = strlen($pets);
$AfterLength = $Length / 2000;
$FinalLength = ceil($AfterLength);
for ($i = 1; $i <= $FinalLength; $i++) {
$Length = strlen($pets) + strlen("Pets for `{$UserID}` (Page: {$i}\n\n");
$extraAccountLength = strlen("Pets for `{$UserID}` (Page: {$i}\n\n");
$subbedMessage = substr($pets, ($i * 2000), (($i * 2000) - $extraAccountLength) + 2000);
$SubLength = strlen($subbedMessage);
$MathResolution1 = ($i * 2000);
$MathResolution2 = (($i * 2000) - $extraAccountLength) + 2000;
BotLog("Subbed message length: {$SubLength}. Math Resolution 1 - 2: {$MathResolution1} - {$MathResolution2}. Pet Length: {$Length}.");
}