koishi-plugin-bilibili-notify 3.3.8-alpha.2 → 3.3.8
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 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1373,7 +1373,7 @@ var ComRegister$1 = class {
|
|
|
1373
1373
|
liveTime = liveRoomInfo.live_time;
|
|
1374
1374
|
const watched = watchedNum || "暂未获取到";
|
|
1375
1375
|
const liveMsg = liveMsgObj.customLive.replace("-name", masterInfo.username).replace("-time", await this.ctx["bilibili-notify-generate-img"].getTimeDifference(liveTime)).replace("-watched", watched).replaceAll("\\n", "\n").replace("-link", `https://live.bilibili.com/${liveRoomInfo.short_id === 0 ? liveRoomInfo.room_id : liveRoomInfo.short_id}`);
|
|
1376
|
-
if (this.config.restartPush)
|
|
1376
|
+
if (this.config.restartPush) this.sendLiveNotifyCard(LiveType.LiveBroadcast, watched, {
|
|
1377
1377
|
liveRoomInfo,
|
|
1378
1378
|
masterInfo,
|
|
1379
1379
|
cardStyle: sub.customCardStyle
|
package/lib/index.mjs
CHANGED
|
@@ -1355,7 +1355,7 @@ var ComRegister$1 = class {
|
|
|
1355
1355
|
liveTime = liveRoomInfo.live_time;
|
|
1356
1356
|
const watched = watchedNum || "暂未获取到";
|
|
1357
1357
|
const liveMsg = liveMsgObj.customLive.replace("-name", masterInfo.username).replace("-time", await this.ctx["bilibili-notify-generate-img"].getTimeDifference(liveTime)).replace("-watched", watched).replaceAll("\\n", "\n").replace("-link", `https://live.bilibili.com/${liveRoomInfo.short_id === 0 ? liveRoomInfo.room_id : liveRoomInfo.short_id}`);
|
|
1358
|
-
if (this.config.restartPush)
|
|
1358
|
+
if (this.config.restartPush) this.sendLiveNotifyCard(LiveType.LiveBroadcast, watched, {
|
|
1359
1359
|
liveRoomInfo,
|
|
1360
1360
|
masterInfo,
|
|
1361
1361
|
cardStyle: sub.customCardStyle
|