chore: 2000 character chunks
Node.js CI / Lint and Test (push) Successful in 41s

This commit is contained in:
2025-10-10 18:00:25 -07:00
parent bfc52fbe85
commit 76fe838987
+2 -2
View File
@@ -20,11 +20,11 @@ export const sendAiResponse = async(
type: GuildTextBasedChannel["sendTyping"],
): Promise<void> => {
const joined = content.join("\n\n");
if (joined.length < 4000) {
if (joined.length < 2000) {
await send(joined);
return;
}
const chunks = joined.match(/[\S\s]{1,4000}/g);
const chunks = joined.match(/[\S\s]{1,2000}/g);
if (chunks) {
for (const chunk of chunks) {
await send(chunk);