mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-17 13:50:36 +00:00
Update main.ts
This commit is contained in:
parent
5a35ab6c34
commit
66d60d3599
@ -286,7 +286,7 @@ 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 as Array<number>).find((item) => item == msg.group_id)) {
|
if (msg.message_type == 'group' && msg.group_id && (ob11Config.GroupLocalTimeRecord[0] === -1 || ob11Config.GroupLocalTimeRecord.includes(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