koishi-plugin-bilibili-notify 3.0.0-alpha.21 → 3.0.0-alpha.22

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 CHANGED
@@ -154,7 +154,7 @@ class ServerManager extends koishi_1.Service {
154
154
  hideDesc: globalConfig.hideDesc,
155
155
  enableLargeFont: globalConfig.enableLargeFont,
156
156
  font: globalConfig.font,
157
- followerDisplay: globalConfig.followerDisplay
157
+ followerDisplay: globalConfig.followerDisplay,
158
158
  });
159
159
  // CR = ComRegister
160
160
  const cr = this.ctx.plugin(comRegister_1.default, {
@@ -303,17 +303,30 @@ exports.Config = koishi_1.Schema.object({
303
303
  dynamic: koishi_1.Schema.boolean().default(false).description("是否订阅用户动态"),
304
304
  live: koishi_1.Schema.boolean().default(false).description("是否订阅用户直播"),
305
305
  target: koishi_1.Schema.array(koishi_1.Schema.object({
306
+ platform: koishi_1.Schema.string()
307
+ .required()
308
+ .description("推送平台,例如onebot、qq、discord"),
306
309
  channelIdArr: koishi_1.Schema.array(koishi_1.Schema.object({
307
310
  channelId: koishi_1.Schema.string().required().description("频道/群组号"),
308
- dynamic: koishi_1.Schema.boolean().default(false).description("该频道/群组是否推送动态信息"),
309
- live: koishi_1.Schema.boolean().default(false).description("该频道/群组是否推送直播通知"),
310
- liveGuardBuy: koishi_1.Schema.boolean().default(false).description("该频道/群组是否推送上舰消息"),
311
- atAll: koishi_1.Schema.boolean().default(false).description("推送开播通知时是否艾特全体成员"),
312
- })).description("需推送的频道/群组详细设置"),
313
- platform: koishi_1.Schema.string().required().description("推送平台,例如onebot、qq、discord"),
311
+ dynamic: koishi_1.Schema.boolean()
312
+ .default(false)
313
+ .description("该频道/群组是否推送动态信息"),
314
+ live: koishi_1.Schema.boolean()
315
+ .default(false)
316
+ .description("该频道/群组是否推送直播通知"),
317
+ liveGuardBuy: koishi_1.Schema.boolean()
318
+ .default(false)
319
+ .description("该频道/群组是否推送上舰消息"),
320
+ atAll: koishi_1.Schema.boolean()
321
+ .default(false)
322
+ .description("推送开播通知时是否艾特全体成员"),
323
+ }))
324
+ .role("table")
325
+ .required()
326
+ .description("需推送的频道/群组详细设置"),
314
327
  })).description("订阅用户需要发送的平台和频道/群组信息(一个平台下可以推送多个频道/群组)"),
315
- }))
316
- .role("table")
328
+ }).collapse())
329
+ .collapse()
317
330
  .description("输入订阅信息,自定义订阅内容; uid: 订阅用户UID,dynamic: 是否需要订阅动态,live: 是否需要订阅直播"),
318
331
  dynamic: koishi_1.Schema.object({}).description("动态推送设置"),
319
332
  dynamicUrl: koishi_1.Schema.boolean()
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": "3.0.0-alpha.21",
4
+ "version": "3.0.0-alpha.22",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -201,6 +201,7 @@
201
201
  - ver 3.0.0-alpha.19 修复:开播提示语粉丝数单位错误; 优化:订阅配置中所有配置项改为必填项
202
202
  - ver 3.0.0-alpha.20 优化:订阅配置中开关选项默认为关闭
203
203
  - ver 3.0.0-alpha.21 优化:部分代码; 新增:更新插件后,由于机器人还未启动,已开始发送消息报错 `this._request is not a function` ,新增报错后自动重新发送消息的功能
204
+ - ver 3.0.0-alpha.22 优化:订阅配置展示优化
204
205
 
205
206
  ## 交流群
206
207