mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-24 00:40:05 +08:00
Update main.ts
This commit is contained in:
parent
16f926401b
commit
32d26248dc
@ -286,7 +286,8 @@ export class NapCatOnebot11 {
|
|||||||
}
|
}
|
||||||
if (msg.post_type === 'message') {
|
if (msg.post_type === 'message') {
|
||||||
logMessage(msg as OB11Message).then().catch(logError);
|
logMessage(msg as OB11Message).then().catch(logError);
|
||||||
if (msg.message_type == 'group' && msg.group_id && (ob11Config.GroupLocalTimeRecord[0] === -1 || ob11Config.GroupLocalTimeRecord.includes(msg.group_id))) {
|
// 大概测试了一下,2700个以内,find的性能更好
|
||||||
|
if (msg.message_type == 'group' && msg.group_id && (ob11Config.GroupLocalTimeRecord[0] === -1 || ob11Config.GroupLocalTimeRecord.find(gid=>gid == msg.group_id))) {
|
||||||
dbUtil.insertLastSentTime(msg.group_id, msg.user_id, msg.time);
|
dbUtil.insertLastSentTime(msg.group_id, msg.user_id, msg.time);
|
||||||
}
|
}
|
||||||
} else if (msg.post_type === 'notice') {
|
} else if (msg.post_type === 'notice') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user