yz-yuki-plugin 2.0.7-2 → 2.0.7-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ pushContentLineLimit: 5
44
44
  pushTaskLog: 1
45
45
 
46
46
  # 白名单关键词,命中即推送,不在白名单则不推送。
47
- # 白名单优先级高于黑名单,即命中白名单即推送,不在白名单则不推送。
47
+ # 白名单与黑名单共同起作用,即命中白名单但不命中黑名单即推送,不在白名单或命中黑名单则不推送。
48
48
  # 白名单为空则不启用白名单功能。
49
49
  # 配置示例:
50
50
  # whiteWordslist:
@@ -39,7 +39,7 @@ pushContentLineLimit: 5
39
39
  pushTaskLog: 1
40
40
 
41
41
  # 白名单关键词,命中即推送,不在白名单则不推送。
42
- # 白名单优先级高于黑名单,即命中白名单即推送,不在白名单则不推送。
42
+ # 白名单与黑名单共同起作用,即命中白名单但不命中黑名单即推送,不在白名单或命中黑名单则不推送。
43
43
  # 白名单为空则不启用白名单功能。
44
44
  # 配置示例:
45
45
  # whiteWordslist:
@@ -499,7 +499,8 @@ message.use(async (e) => {
499
499
  }, [/^(#|\/)(yuki|优纪)?搜索(b站|B站|bili|bilibili|哔哩|哔哩哔哩)(up|UP)主.*$/]);
500
500
  /** 根据名称搜索up的uid*/
501
501
  message.use(async (e) => {
502
- if (biliConfigData?.parseVideoLink && !!biliConfigData.parseVideoLink === false) {
502
+ let parseVideoLink = !!biliConfigData?.parseVideoLink === false ? false : true;
503
+ if (parseVideoLink === false) {
503
504
  logger?.info(`优纪B站视频链接解析配置文件已设置关闭,解析终止。`);
504
505
  return;
505
506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yz-yuki-plugin",
3
- "version": "2.0.7-2",
3
+ "version": "2.0.7-4",
4
4
  "description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
5
5
  "author": "snowtafir",
6
6
  "type": "module",