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 +1 -2
- package/lib/index.mjs +2 -3
- package/package.json +1 -1
- package/readme.md +1 -0
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
|
-
|
|
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
|
-
|
|
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