mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
对 get_group_member_list 增强
监听每一条群聊消息准备写入数据库
This commit is contained in:
parent
9fa0dcd7aa
commit
0ad0353fc0
@ -35,6 +35,7 @@ import { Data as SysData } from '@/proto/SysMessage';
|
||||
import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange';
|
||||
import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent';
|
||||
import { isEqual } from '@/common/utils/helper';
|
||||
import { insertLastSentTime } from "./action/group/LastSendAndJoinRemberLRU"
|
||||
|
||||
//下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便
|
||||
//
|
||||
@ -286,6 +287,9 @@ export class NapCatOnebot11 {
|
||||
}
|
||||
if (msg.post_type === 'message') {
|
||||
logMessage(msg as OB11Message).then().catch(logError);
|
||||
if (msg.message_type == 'group' && msg.group_id) {
|
||||
insertLastSentTime(msg.group_id, msg.user_id, msg.time)
|
||||
}
|
||||
} else if (msg.post_type === 'notice') {
|
||||
logNotice(msg).then().catch(logError);
|
||||
} else if (msg.post_type === 'request') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user