koishi-plugin-bilibili-notify 1.3.0-alpha.0 → 1.3.0-rc.0
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/comRegister.js +5 -3
- package/package.json +1 -1
- package/readme.md +2 -0
package/lib/comRegister.js
CHANGED
|
@@ -1120,11 +1120,12 @@ class ComRegister {
|
|
|
1120
1120
|
// 推送直播信息
|
|
1121
1121
|
// pic 存在,使用的是render模式
|
|
1122
1122
|
if (pic) {
|
|
1123
|
-
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg, `https://live.bilibili.com/${roomId}`] });
|
|
1123
|
+
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg, liveType !== LiveType.StartBroadcasting ? `https://live.bilibili.com/${roomId}` : ''] });
|
|
1124
1124
|
return await this.sendMsg(ctx, guildId, bot, pic + msg);
|
|
1125
1125
|
}
|
|
1126
1126
|
// pic不存在,说明使用的是page模式
|
|
1127
|
-
|
|
1127
|
+
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'), atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg, liveType !== LiveType.StartBroadcasting ? `https://live.bilibili.com/${roomId}` : ''] });
|
|
1128
|
+
await this.sendMsg(ctx, guildId, bot, msg);
|
|
1128
1129
|
};
|
|
1129
1130
|
}
|
|
1130
1131
|
else {
|
|
@@ -1158,7 +1159,8 @@ class ComRegister {
|
|
|
1158
1159
|
return await this.sendMsg(ctx, guildId, bot, pic + msg);
|
|
1159
1160
|
}
|
|
1160
1161
|
// pic不存在,说明使用的是page模式
|
|
1161
|
-
|
|
1162
|
+
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'), atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg] });
|
|
1163
|
+
await this.sendMsg(ctx, guildId, bot, msg);
|
|
1162
1164
|
};
|
|
1163
1165
|
}
|
|
1164
1166
|
// 定义获取主播信息方法
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
- ver 1.2.15 新增直播推送卡片简介隐藏选项
|
|
162
162
|
- ver 1.2.16 当存储在数据库中的登录信息被篡改时,新增控制台提示
|
|
163
163
|
- ver 1.3.0-alpha.0 对直播推送逻辑进行小型重构,优化了性能。新增功能:定时推送直播卡片可选是否发送直播链接;在遇到getMasterInfo()错误时,可切换获取主播信息Api
|
|
164
|
+
- ver 1.3.0-alpha.1 修复bug:发送直播开播通知时,如果在开播语中加入链接,同时开启了推送直播卡片发送直播链接,则会发送两条链接
|
|
165
|
+
- ver 1.3.0-rc.0 修复bug:发送直播开播通知时,如果开启了开播发送链接,会在链接末尾添加一个false
|
|
164
166
|
|
|
165
167
|
## 交流群
|
|
166
168
|
|