3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 11:07:19 +00:00

Include durations in mute and unmute case notes, clarify bot responses when updating an active mute

This commit is contained in:
Dragory 2019-03-07 22:35:33 +02:00
parent 18f16f6bad
commit 374e79e2dc
3 changed files with 52 additions and 26 deletions

View file

@ -199,6 +199,10 @@ export function trimLines(str: string) {
.trim();
}
export function asSingleLine(str: string) {
return trimLines(str).replace(/\n/g, " ");
}
export const emptyEmbedValue = "\u200b";
export const embedPadding = "\n" + emptyEmbedValue;