feat: 提示关键词修改建议

This commit is contained in:
shanmite 2021-12-12 16:32:49 +08:00
parent 5a23043466
commit aba17ed0ad
3 changed files with 8 additions and 4 deletions

View File

@ -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 }) 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) { if (isBlock) {
log.info("筛选动态", `包含屏蔽词(https://t.bilibili.com/${dyid})`) log.info("筛选动态", `包含屏蔽词(https://t.bilibili.com/${dyid})`)

View File

@ -49,8 +49,8 @@ const config = {
* 符合js正则表达式的字符串 * 符合js正则表达式的字符串
*/ */
key_words: [ key_words: [
"[抽奖送]", "[抽奖送]|福利",
"[转关评]" "[转关评]|参与"
], ],
/** /**

View File

@ -63,8 +63,8 @@ module.exports = Object.freeze({
* 符合js正则表达式的字符串 * 符合js正则表达式的字符串
*/ */
key_words: [ key_words: [
"[抽奖送]", "[抽奖送]|福利",
"[转关评]" "[转关评]|参与"
], ],
/** /**