MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / scheduleMention

Function scheduleMention

src/utils/string.utils.ts:85–89  ·  view source on GitHub ↗
(schedule: DbSchedule)

Source from the content-addressed store, hash-verified

83}
84
85export function scheduleMention(schedule: DbSchedule) {
86 let humanReadableSchedule = cronstrue.toString(schedule.cron);
87 humanReadableSchedule = humanReadableSchedule.charAt(0).toLowerCase() + humanReadableSchedule.slice(1);
88 return `will ${schedule.command} ${humanReadableSchedule} (${schedule.timezone})${schedule.reason ? ` - ${schedule.reason}` : ""}`;
89}
90
91export function timeMention(seconds: number) {
92 seconds = Number(seconds);

Callers 1

getAutocompletionsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected