mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-12 21:03:13 +08:00
中奖检测屏蔽自动回复
根据消息类型屏蔽掉关注自动回复和营销广告,避免误判
This commit is contained in:
parent
93d372761a
commit
22c5b55eb6
@ -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}无私信`)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user