koishi-plugin-bilibili-notify 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +12 -2
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/comRegister.js
CHANGED
|
@@ -1065,11 +1065,21 @@ class ComRegister {
|
|
|
1065
1065
|
// pic 存在,使用的是render模式
|
|
1066
1066
|
if (pic) {
|
|
1067
1067
|
const msg = liveNotifyMsg ? liveNotifyMsg : '';
|
|
1068
|
-
|
|
1068
|
+
// 只有在开播时才艾特全体成员
|
|
1069
|
+
if (liveType === LiveType.StartBroadcasting) {
|
|
1070
|
+
return await this.sendMsg(ctx, target, pic + msg, true);
|
|
1071
|
+
}
|
|
1072
|
+
// 正常不需要艾特全体成员
|
|
1073
|
+
return await this.sendMsg(ctx, target, pic + msg);
|
|
1069
1074
|
}
|
|
1070
1075
|
// pic不存在,说明使用的是page模式
|
|
1071
1076
|
const msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'), liveNotifyMsg && liveNotifyMsg] });
|
|
1072
|
-
|
|
1077
|
+
// 只有在开播时才艾特全体成员
|
|
1078
|
+
if (liveType === LiveType.StartBroadcasting) {
|
|
1079
|
+
return await this.sendMsg(ctx, target, msg, true);
|
|
1080
|
+
}
|
|
1081
|
+
// 正常不需要艾特全体成员
|
|
1082
|
+
return await this.sendMsg(ctx, target, msg);
|
|
1073
1083
|
};
|
|
1074
1084
|
// 定义获取主播信息方法
|
|
1075
1085
|
let useMasterInfo;
|
package/package.json
CHANGED
package/readme.md
CHANGED