feat: memory basic

This commit is contained in:
ikechan8370 2025-11-04 17:35:51 +08:00
parent 185f163c9c
commit fd478f72ea
17 changed files with 3823 additions and 79 deletions

View file

@ -75,6 +75,9 @@ export class TRSSGroupContextCollector extends GroupContextCollector {
* @returns {Promise<Array<*>>}
*/
async collect (bot = Bot, groupId, start = 0, length = 20) {
if (!bot) {
return []
}
const group = bot.pickGroup(groupId)
let chats = await group.getChatHistory(start, length)
try {