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

Method pruneExpired

fbi/fbi.ts:97–102  ·  view source on GitHub ↗

remove messages older than 30 days from a chat cache, return true if any pruned

(chat: CachedChat)

Source from the content-addressed store, hash-verified

95
96class FbiPlugin extends Plugin {
97 description = `FBI 跨群组追踪\n\n${HELP}`;
98
99 cmdHandlers = { fbi: this.onCmd.bind(this) };
100 listenMessageHandler = this.onMsg.bind(this);
101
102 private configDb: any;
103 private cacheDb: any;
104 private sv = new Map<string, SvEntry>();
105 private chatCache = new Map<string, CachedChat>();

Callers 2

initDBMethod · 0.95
onMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected