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.
@@ -1065,11 +1065,21 @@ class ComRegister {
1065
1065
  // pic 存在,使用的是render模式
1066
1066
  if (pic) {
1067
1067
  const msg = liveNotifyMsg ? liveNotifyMsg : '';
1068
- return await this.sendMsg(ctx, target, pic + msg, true);
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
- await this.sendMsg(ctx, target, msg, true);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilibili-notify",
3
3
  "description": "Koishi bilibili notify plugin",
4
- "version": "2.0.0-alpha.11",
4
+ "version": "2.0.0-alpha.12",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -198,6 +198,7 @@
198
198
  - ver 2.0.0-alpha.9 修复:订阅反复提示未加入群组的bug,实际已加入
199
199
  - ver 2.0.0-alpha.10 新增:可对每个群聊针对性设置是否艾特全体成员 优化:直播下播通知
200
200
  - ver 2.0.0-alpha.11 回档:订阅时可直接接收群号/频道号 修复:直播过程推送消息不成功的bug
201
+ - ver 2.0.0-alpha.12 更改:开启艾特全体成员后,只有在开播时才艾特全体成员
201
202
 
202
203
  ## 交流群
203
204