From 76fe8389878873ecb6bd69ff3378c1cc37737f80 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Fri, 10 Oct 2025 18:00:25 -0700 Subject: [PATCH] chore: 2000 character chunks --- src/modules/sendAiResponse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sendAiResponse.ts b/src/modules/sendAiResponse.ts index 4a9369a..d7c25e6 100644 --- a/src/modules/sendAiResponse.ts +++ b/src/modules/sendAiResponse.ts @@ -20,11 +20,11 @@ export const sendAiResponse = async( type: GuildTextBasedChannel["sendTyping"], ): Promise => { 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);