remove messages older than 30 days from a chat cache, return true if any pruned
(chat: CachedChat)
| 95 | |
| 96 | class 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>(); |