koishi-plugin-bilibili-notify 3.2.5-alpha.8 → 3.2.5-alpha.9

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
@@ -821,8 +821,7 @@ var ComRegister = class {
821
821
  this.logger.info(this.pushRecord);
822
822
  }
823
823
  checkAllBotsAreReady() {
824
- const bot = this.ctx.bots.some((bot$1) => !bot$1.isActive);
825
- return !bot;
824
+ return !this.ctx.bots.some((bot) => bot.status !== koishi.Universal.Status.ONLINE);
826
825
  }
827
826
  async broadcastToTargets(uid, content, type, retry = 3e3) {
828
827
  if (!this.checkAllBotsAreReady()) {
package/lib/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { Schema, Service, h, isNullable, remove } from "koishi";
2
+ import { Schema, Service, Universal, h, isNullable, remove } from "koishi";
3
3
  import { resolve } from "path";
4
4
  import QRCode from "qrcode";
5
5
  import { CronJob } from "cron";
@@ -823,8 +823,7 @@ var ComRegister = class {
823
823
  this.logger.info(this.pushRecord);
824
824
  }
825
825
  checkAllBotsAreReady() {
826
- const bot = this.ctx.bots.some((bot$1) => !bot$1.isActive);
827
- return !bot;
826
+ return !this.ctx.bots.some((bot) => bot.status !== Universal.Status.ONLINE);
828
827
  }
829
828
  async broadcastToTargets(uid, content, type, retry = 3e3) {
830
829
  if (!this.checkAllBotsAreReady()) {
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.2.5-alpha.8",
4
+ "version": "3.2.5-alpha.9",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -287,6 +287,7 @@ uid为必填参数,为要推送的UP主的UID,index为可选参数,为要
287
287
  > - ver 3.2.5-alpha.6 测试版本
288
288
  > - ver 3.2.5-alpha.7 测试版本
289
289
  > - ver 3.2.5-alpha.8 测试版本
290
+ > - ver 3.2.5-alpha.9 测试版本
290
291
 
291
292
  ## 交流群
292
293