koishi-plugin-bilibili-notify 3.3.11-alpha.2 → 3.3.11-alpha.3
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 +2 -2
- package/lib/index.mjs +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1362,7 +1362,7 @@ var ComRegister = class {
|
|
|
1362
1362
|
await this.sendPrivateMsg("获取直播间信息失败,推送直播开播卡片失败!");
|
|
1363
1363
|
return await this.sendPrivateMsgAndStopService();
|
|
1364
1364
|
}
|
|
1365
|
-
this.logger.info(
|
|
1365
|
+
this.logger.info(`房间号:${masterInfo.roomId},开播粉丝数:${masterInfo.liveOpenFollowerNum}`);
|
|
1366
1366
|
liveTime = liveRoomInfo?.live_time || luxon.DateTime.now().toFormat("yyyy-MM-dd HH:mm:ss");
|
|
1367
1367
|
const diffTime = await this.ctx["bilibili-notify-generate-img"].getTimeDifference(liveTime);
|
|
1368
1368
|
const followerNum = masterInfo.liveOpenFollowerNum >= 1e4 ? `${(masterInfo.liveOpenFollowerNum / 1e4).toFixed(1)}万` : masterInfo.liveOpenFollowerNum.toString();
|
|
@@ -2064,7 +2064,7 @@ var GenerateImg = class extends koishi.Service {
|
|
|
2064
2064
|
</div>
|
|
2065
2065
|
${this.giConfig.hideDesc ? "" : `<p class="card-text">${data.description ? data.description : "这个主播很懒,什么简介都没写"}</p>`}
|
|
2066
2066
|
<p class="card-link">
|
|
2067
|
-
<span>${liveStatus === 3 ?
|
|
2067
|
+
<span>${liveStatus === 3 ? `本场直播点赞数:${this.numberToStr(+liveData.likedNum)}` : `人气:${this.numberToStr(data.online)}`}</span>
|
|
2068
2068
|
<span>分区名称:${data.area_name}</span>
|
|
2069
2069
|
</p>
|
|
2070
2070
|
<p class="card-link">
|
package/lib/index.mjs
CHANGED
|
@@ -1344,7 +1344,7 @@ var ComRegister = class {
|
|
|
1344
1344
|
await this.sendPrivateMsg("获取直播间信息失败,推送直播开播卡片失败!");
|
|
1345
1345
|
return await this.sendPrivateMsgAndStopService();
|
|
1346
1346
|
}
|
|
1347
|
-
this.logger.info(
|
|
1347
|
+
this.logger.info(`房间号:${masterInfo.roomId},开播粉丝数:${masterInfo.liveOpenFollowerNum}`);
|
|
1348
1348
|
liveTime = liveRoomInfo?.live_time || DateTime.now().toFormat("yyyy-MM-dd HH:mm:ss");
|
|
1349
1349
|
const diffTime = await this.ctx["bilibili-notify-generate-img"].getTimeDifference(liveTime);
|
|
1350
1350
|
const followerNum = masterInfo.liveOpenFollowerNum >= 1e4 ? `${(masterInfo.liveOpenFollowerNum / 1e4).toFixed(1)}万` : masterInfo.liveOpenFollowerNum.toString();
|
|
@@ -2046,7 +2046,7 @@ var GenerateImg = class extends Service {
|
|
|
2046
2046
|
</div>
|
|
2047
2047
|
${this.giConfig.hideDesc ? "" : `<p class="card-text">${data.description ? data.description : "这个主播很懒,什么简介都没写"}</p>`}
|
|
2048
2048
|
<p class="card-link">
|
|
2049
|
-
<span>${liveStatus === 3 ?
|
|
2049
|
+
<span>${liveStatus === 3 ? `本场直播点赞数:${this.numberToStr(+liveData.likedNum)}` : `人气:${this.numberToStr(data.online)}`}</span>
|
|
2050
2050
|
<span>分区名称:${data.area_name}</span>
|
|
2051
2051
|
</p>
|
|
2052
2052
|
<p class="card-link">
|