Attempt to improve the way long strings are split up. There's a new extension method called FancySplitMessage to achieve this. Truncation options now work on bytes instead of string length too

This commit is contained in:
barelyprofessional
2025-02-09 15:59:39 +08:00
parent 4448a6a70a
commit f0fc79c142
3 changed files with 85 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ public class GmKasinoListCommand : ICommand
result += $"[br]{i}: {image}";
}
await botInstance.SendChatMessagesAsync(result.SplitMessage().ToList(), true);
await botInstance.SendChatMessagesAsync(result.FancySplitMessage(), true);
}
}
@@ -213,7 +213,7 @@ public class GnKasinoListCommand : ICommand
result += $"[br]{i}: {image}";
}
await botInstance.SendChatMessagesAsync(result.SplitMessage().ToList(), true);
await botInstance.SendChatMessagesAsync(result.FancySplitMessage(), true);
}
}