From b3211886e264ec825efe425b53479d9f3e3b7795 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 7 May 2022 17:48:37 -0600 Subject: [PATCH] codePreviews: dont send if > 2000 chars --- src/modules/codePreviews.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/codePreviews.js b/src/modules/codePreviews.js index 971bbb8..f9c7a4e 100644 --- a/src/modules/codePreviews.js +++ b/src/modules/codePreviews.js @@ -104,6 +104,8 @@ events.add("messageCreate", "codePreviews", async function (msg) { } } + if (out.length > 2000) return; + if (out !== "") { await msg.edit({flags: 1 << 2}); await msg.channel.createMessage({