MCPcopy
hub / github.com/openclaw/clawsweeper / commentTimestampMs

Function commentTimestampMs

src/clawsweeper.ts:3294–3297  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3292}
3293
3294function commentTimestampMs(value: unknown): number {
3295 const comment = asRecord(value);
3296 return timestampValueMs(comment.updated_at) || timestampValueMs(comment.created_at);
3297}
3298
3299function isClawSweeperComment(value: unknown): boolean {
3300 return CLAWSWEEPER_BOT_AUTHORS.has((login(asRecord(value).user) ?? "").toLowerCase());

Callers 1

Calls 2

timestampValueMsFunction · 0.85
asRecordFunction · 0.70

Tested by

no test coverage detected