koishi-plugin-bilibili-notify 3.1.5-alpha.3 → 3.1.5

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.
@@ -637,8 +637,11 @@ class ComRegister {
637
637
  }
638
638
  }
639
639
  }
640
- // 将当前动态存入currentPushDyn
641
- currentPushDyn[uid] = item;
640
+ // 如果当前订阅对象已存在更早推送,则无需再更新时间线
641
+ if (!currentPushDyn[uid]) {
642
+ // 将当前动态存入currentPushDyn
643
+ currentPushDyn[uid] = item;
644
+ }
642
645
  // logger
643
646
  this.logger.info("动态推送完毕!");
644
647
  }
package/lib/index.js CHANGED
@@ -333,14 +333,14 @@ exports.Config = koishi_1.Schema.object({
333
333
  .default("-name开播啦,当前粉丝数:-follower\\n-link")
334
334
  .description("自定义开播提示语,-name代表UP昵称,-follower代表当前粉丝数,-link代表直播间链接(如果使用的是QQ官方机器人,请不要使用),\\n为换行。例如-name开播啦,会发送为xxxUP开播啦"),
335
335
  customLive: koishi_1.Schema.string()
336
- .default("-name正在直播,目前已播-time,累计看过人数:-watched\\n-link")
337
- .description("自定义直播中提示语,-name代表UP昵称,-time代表开播时长,-watched代表累计看过人数,-link代表直播间链接(如果使用的是QQ官方机器人,请不要使用),\\n为换行。例如-name正在直播,会发送为xxxUP正在直播xxx"),
336
+ .default("-name正在直播,目前已播-time,累计观看人数:-watched\\n-link")
337
+ .description("自定义直播中提示语,-name代表UP昵称,-time代表开播时长,-watched代表累计观看人数,-link代表直播间链接(如果使用的是QQ官方机器人,请不要使用),\\n为换行。例如-name正在直播,会发送为xxxUP正在直播xxx"),
338
338
  customLiveEnd: koishi_1.Schema.string()
339
339
  .default("-name下播啦,本次直播了-time,粉丝数变化-follower_change")
340
340
  .description("自定义下播提示语,-name代表UP昵称,-follower_change代表本场直播粉丝数变,-time代表开播时长,\\n为换行。例如-name下播啦,本次直播了-time,会发送为xxxUP下播啦,直播时长为xx小时xx分钟xx秒"),
341
341
  followerDisplay: koishi_1.Schema.boolean()
342
342
  .default(true)
343
- .description("粉丝数变化和看过本场直播的人数是否显示在推送卡片中"),
343
+ .description("粉丝数变化和累积观看本场直播的人数是否显示在推送卡片中"),
344
344
  hideDesc: koishi_1.Schema.boolean()
345
345
  .default(false)
346
346
  .description("是否隐藏UP主直播间简介,开启后推送的直播卡片将不再展示简介"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilibili-notify",
3
3
  "description": "Koishi bilibili notify plugin",
4
- "version": "3.1.5-alpha.3",
4
+ "version": "3.1.5",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -241,6 +241,7 @@ uid为必填参数,为要推送的UP主的UID,index为可选参数,为要
241
241
  - ver 3.1.5-alpha.1 修复:动态不推送的bug;
242
242
  - ver 3.1.5-alpha.2 修复:潜在动态推送bug;
243
243
  - ver 3.1.5-alpha.3 修复:动态推送时报错:dynamicDetect generateDynamicImg() 推送卡片发送失败,原因:Cannot read properties of undefined (reading 'card');
244
+ - ver 3.1.5 修复:非 `debug` 模式下动态推送,如果在一个监测周期内同一个订阅的up主发送多条动态,下一个监测周期会重复推送;
244
245
 
245
246
  ## 交流群
246
247