mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
Update
This commit is contained in:
parent
5056eea79e
commit
54402c4abb
1 changed files with 2 additions and 2 deletions
|
@ -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"})*`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue