mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user