diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index 463e28b..4060eab 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -55,14 +55,14 @@ function notEmpty(str) { const regexCutTags = /[\S\s]{1,875}[^,]{0,25}/; function formatTags(tags) { - const tagString = decode(tags.map(escapeMarkdown).join(', ')); + const tagString = decode(tags.join(', ')); if (tagString.length < 500) { return tagString; } const tagCutMatch = tagString.match(regexCutTags) ?? []; - return `${escapeMarkdown(tagCutMatch[0] ?? '')}, ...`; + return `\`${escapeMarkdown(tagCutMatch[0] ?? '')}, ...\``; } var credentials = JSON.parse(readFileSync("config/credentials.json"));