中奖检测屏蔽自动回复

根据消息类型屏蔽掉关注自动回复和营销广告,避免误判
This commit is contained in:
Nevidebla 2024-04-23 22:02:55 +08:00 committed by GitHub
parent 93d372761a
commit 22c5b55eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,7 +319,7 @@ const bili_client = {
const msgs = res.data.messages
if (msgs instanceof Array) {
log.info('私信细节', `${talker_id}${size}条未读私信`)
return msgs.map(it => it.content).join('\n')
return msgs.filter(it => ![5, 8, 9, 10, 11].includes(it.msg_source)).map(it => JSON.parse(it.content).content).join('\n')
} else {
log.warn('私信细节', `${talker_id}无私信`)
}