From aba17ed0adcb238076e878a312d2dd30a7d43924 Mon Sep 17 00:00:00 2001 From: shanmite Date: Sun, 12 Dec 2021 16:32:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E7=A4=BA=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E8=AF=8D=E4=BF=AE=E6=94=B9=E5=BB=BA=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/monitor.js | 4 ++++ lib/data/config.js | 4 ++-- my_config.example.js | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index abcba97..656771b 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -353,6 +353,10 @@ class Monitor extends Searcher { log.debug("筛选动态", { real_uid, mIsFollowed, oriIsFollowed, realIsFollowed, needAt, needTopic, isRelayDynamic, key_words, has_key_words, blockword, isBlock, isLottery, isSendChat }) + if (!has_key_words && description) { + log.warn("筛选动态", `无关键词动态的描述: ${description}\n\n考虑是否修改设置key_words:\n${key_words.join('\n')}`) + } + /**屏蔽词 */ if (isBlock) { log.info("筛选动态", `包含屏蔽词(https://t.bilibili.com/${dyid})`) diff --git a/lib/data/config.js b/lib/data/config.js index 8954948..8ceb96e 100644 --- a/lib/data/config.js +++ b/lib/data/config.js @@ -49,8 +49,8 @@ const config = { * 符合js正则表达式的字符串 */ key_words: [ - "[抽奖送]", - "[转关评]" + "[抽奖送揪]|福利", + "[转关评粉]|参与" ], /** diff --git a/my_config.example.js b/my_config.example.js index f5080c0..4cb2a25 100644 --- a/my_config.example.js +++ b/my_config.example.js @@ -63,8 +63,8 @@ module.exports = Object.freeze({ * 符合js正则表达式的字符串 */ key_words: [ - "[抽奖送]", - "[转关评]" + "[抽奖送揪]|福利", + "[转关评粉]|参与" ], /**