3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00
This commit is contained in:
iamshoXy 2024-04-26 11:07:55 +02:00
parent 5056eea79e
commit 54402c4abb

View file

@ -8,7 +8,7 @@ import { caseAbbreviations } from "../caseAbbreviations";
import { CasesPluginType } from "../types";
import { getCaseIcon } from "./getCaseIcon";
const CASE_SUMMARY_REASON_MAX_LENGTH = 600;
const CASE_SUMMARY_REASON_MAX_LENGTH = 500;
const INCLUDE_MORE_NOTES_THRESHOLD = 20;
const UPDATE_STR = "\n**[Update]**";
@ -67,7 +67,7 @@ export async function getCaseSummary(
let caseType = (caseAbbreviations[theCase.type] || String(theCase.type)).toUpperCase();
caseType = (caseType + " ").slice(0, 4);
let line = `${icon} **\`${caseType}\`** \`[${prettyTimestamp}]\` ${caseTitle} **Moderator:** ${theCase.mod_name}\n${reason}`;
let line = `${icon} **\`${caseType}\`** \`[${prettyTimestamp}]\` ${caseTitle} **Mod:** ${theCase.mod_name}\n${reason}`;
if (leftoverNotes > 1) {
line += ` *(+${leftoverNotes} ${leftoverNotes === 1 ? "note" : "notes"})*`;
}