Skip to content

Commit

Permalink
feat: 中奖检测屏蔽自动回复 (#381)
Browse files Browse the repository at this point in the history
* 中奖检测屏蔽自动回复

根据消息类型屏蔽掉关注自动回复和营销广告,避免误判

* fix
  • Loading branch information
Nevidebla authored Apr 25, 2024
1 parent ded981e commit d9f6bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/bili.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => it.content).join('\n')
} else {
log.warn('私信细节', `${talker_id}无私信`)
}
Expand Down

0 comments on commit d9f6bf2

Please sign in to comment.