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

Interface CachedMsg

fbi/fbi.ts:45–50  ·  view source on GitHub ↗

Minimal serializable representation of a chat message

Source from the content-addressed store, hash-verified

43 username?: string;
44 title?: string;
45 firstName?: string;
46 lastName?: string;
47 className?: string;
48};
49const entityFields = (e: unknown): EntityFields => e as EntityFields;
50
51/** random delay between min and max ms */
52function rndDelay(min: number, max: number): Promise<void> {
53 const ms = Math.floor(Math.random() * (max - min + 1)) + min;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected