From 468491c6af40cd9f1c094a1d94cabb3c53f85fa3 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sat, 12 Oct 2024 01:14:47 +0200 Subject: [PATCH] me stoopid --- src/commands/fun/gelbooru.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index e702050..2e0f013 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -53,16 +53,16 @@ function notEmpty(str) { return str.trim() !== '' } -const regexCutTags = /[\S\s]{1,475}[^,]{0,25}/; +const regexCutTags = /[\S\s]{1,875}[^,]{0,25}/; function formatTags(tags) { const tagString = decode(tags.join(', ')); - if (tagString.length < 500) { - return tagString; + if (tagString.length < 900) { + return escapeMarkdown(tagString); } const tagCutMatch = tagString.match(regexCutTags) ?? []; - return `\`\`${(tagCutMatch[0] ?? '')}, ...\`\``; + return `${escapeMarkdown(tagCutMatch[0] ?? '')}, ...`; } var credentials = JSON.parse(readFileSync("config/credentials.json"));