From fe40a3c44980621a1997f122030916bf1ab8587b Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Thu, 18 Jan 2024 22:03:19 +0100 Subject: [PATCH] blame discord --- commands/message/mod/analyze.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/message/mod/analyze.js b/commands/message/mod/analyze.js index ae5e791..63c8e47 100644 --- a/commands/message/mod/analyze.js +++ b/commands/message/mod/analyze.js @@ -43,7 +43,8 @@ function renderPerspectiveAnalysis(payload, input, type){ function perspectiveAnalysisEmbed(context, payload, input, type){ let score = payload.scores[type]; return createEmbed("default", context, { - description: `${iconPill("agreements", `${type.substr(0, 1).toUpperCase()}${type.substr(1, type.length).toLowerCase().replace(/_/g, ' ')}`)} ${smallPill(`${score.toString().substr(2, 2)}.${score.toString().substr(3, 1)}%`)} ${codeblock("ansi", [stringwrap(renderPerspectiveAnalysis(payload,input,type), 2000)])}`, + // the 1000 chars length limit is stupid, blame discord + description: `${iconPill("agreements", `${type.substr(0, 1).toUpperCase()}${type.substr(1, type.length).toLowerCase().replace(/_/g, ' ')}`)} ${smallPill(`${score.toString().substr(2, 2)}.${score.toString().substr(3, 1)}%`)} ${codeblock("ansi", [stringwrap(renderPerspectiveAnalysis(payload,input,type), 1000)])}`, footer: { iconUrl: STATICS.perspectiveapi, text: `Perspective • ${context.application.name}`