MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / load

Method load

checkin/checkin.ts:59–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57const PREFIX = getPrefixes()[0] || ".";
58const SH_TZ = "Asia/Shanghai";
59const MAX_DELAY = 60;
60const PENDING_TTL = 10 * 60_000;
61const REPLY_TIMEOUT = 10_000;
62const MAX_TEXT = 3800;
63
64// #region schedule(纯函数)
65const TZ_OFFSET = 8 * 3600_000; // Asia/Shanghai 无夏令时
66const DAY = 86400_000;
67const TIME_RE = /^([01]?\d|2[0-3]):([0-5]\d)$/;
68
69function parseTime(v: string | undefined): number | null {
70 const m = TIME_RE.exec((v || "").trim());
71 return m ? Number(m[1]) * 60 + Number(m[2]) : null;
72}
73

Callers 10

constructorMethod · 0.95
searchByCodeFunction · 0.80
fetchDetailFunction · 0.80
getNodeInfoFunction · 0.80
getWebsiteInfoFunction · 0.80
readSecretFromConfigFunction · 0.80
extractDNSDataFunction · 0.80
fetchFromBincheckFunction · 0.80
extractLinksMethod · 0.80
extractGalleryImagesMethod · 0.80

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected