koishi-plugin-bilibili-notify 3.3.13-alpha.1 → 3.3.13-alpha.2

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.
package/lib/index.js CHANGED
@@ -510,13 +510,11 @@ var ComRegister = class {
510
510
  biliCom.subcommand(".ll").usage("展示当前正在直播的订阅对象").example("bili ll").action(async () => {
511
511
  const { data: { live_users } } = await ctx["bilibili-notify-api"].getTheUserWhoIsLiveStreaming();
512
512
  const subLiveUsers = [];
513
- for (const [uid, sub] of this.subManager) {
513
+ if (live_users?.items) for (const [uid, sub] of this.subManager) {
514
514
  let onLive = false;
515
- if (live_users.items) {
516
- for (const user of live_users.items) if (user.mid.toString() === uid && sub.live) {
517
- onLive = true;
518
- break;
519
- }
515
+ for (const user of live_users.items) if (user.mid.toString() === uid && sub.live) {
516
+ onLive = true;
517
+ break;
520
518
  }
521
519
  subLiveUsers.push({
522
520
  uid: Number.parseInt(uid),
@@ -1361,7 +1359,8 @@ var ComRegister = class {
1361
1359
  liveStartTime: liveTime,
1362
1360
  liveEndTime: luxon.DateTime.now().toFormat("yyyy-MM-dd HH:mm:ss")
1363
1361
  };
1364
- const res = await this.ctx["bilibili-notify-api"].chatWithAI(`请你生成直播总结,用这样的风格,多使用emoji并且替换示例中的emoji,同时要对每个人进行个性化点评,一下是风格参考:
1362
+ const res = await this.ctx["bilibili-notify-api"].chatWithAI(`请你生成直播总结,用这样的风格,多使用emoji并且替换示例中的emoji,同时要对每个人进行个性化点评,以下是风格参考:
1363
+
1365
1364
  🔍【弹幕情报站】本场直播数据如下:
1366
1365
  🧍‍♂️ 总共 XX 位 (这里用medalName) 上线
1367
1366
  💬 共计 XXX 条弹幕飞驰而过
@@ -1993,7 +1992,7 @@ var command_register_default = ComRegister;
1993
1992
 
1994
1993
  //#endregion
1995
1994
  //#region src/database.ts
1996
- var database_exports = __export({
1995
+ var database_exports = /* @__PURE__ */ __export({
1997
1996
  apply: () => apply$1,
1998
1997
  name: () => name$1
1999
1998
  });
package/lib/index.mjs CHANGED
@@ -475,13 +475,11 @@ var ComRegister = class {
475
475
  biliCom.subcommand(".ll").usage("展示当前正在直播的订阅对象").example("bili ll").action(async () => {
476
476
  const { data: { live_users } } = await ctx["bilibili-notify-api"].getTheUserWhoIsLiveStreaming();
477
477
  const subLiveUsers = [];
478
- for (const [uid, sub] of this.subManager) {
478
+ if (live_users?.items) for (const [uid, sub] of this.subManager) {
479
479
  let onLive = false;
480
- if (live_users.items) {
481
- for (const user of live_users.items) if (user.mid.toString() === uid && sub.live) {
482
- onLive = true;
483
- break;
484
- }
480
+ for (const user of live_users.items) if (user.mid.toString() === uid && sub.live) {
481
+ onLive = true;
482
+ break;
485
483
  }
486
484
  subLiveUsers.push({
487
485
  uid: Number.parseInt(uid),
@@ -1326,7 +1324,8 @@ var ComRegister = class {
1326
1324
  liveStartTime: liveTime,
1327
1325
  liveEndTime: DateTime.now().toFormat("yyyy-MM-dd HH:mm:ss")
1328
1326
  };
1329
- const res = await this.ctx["bilibili-notify-api"].chatWithAI(`请你生成直播总结,用这样的风格,多使用emoji并且替换示例中的emoji,同时要对每个人进行个性化点评,一下是风格参考:
1327
+ const res = await this.ctx["bilibili-notify-api"].chatWithAI(`请你生成直播总结,用这样的风格,多使用emoji并且替换示例中的emoji,同时要对每个人进行个性化点评,以下是风格参考:
1328
+
1330
1329
  🔍【弹幕情报站】本场直播数据如下:
1331
1330
  🧍‍♂️ 总共 XX 位 (这里用medalName) 上线
1332
1331
  💬 共计 XXX 条弹幕飞驰而过
@@ -1958,7 +1957,7 @@ var command_register_default = ComRegister;
1958
1957
 
1959
1958
  //#endregion
1960
1959
  //#region src/database.ts
1961
- var database_exports = __export({
1960
+ var database_exports = /* @__PURE__ */ __export({
1962
1961
  apply: () => apply$1,
1963
1962
  name: () => name$1
1964
1963
  });
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.3.13-alpha.1",
4
+ "version": "3.3.13-alpha.2",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [