koishi-plugin-bilibili-notify 3.5.0-alpha.1 → 3.5.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/index.cjs CHANGED
@@ -70,7 +70,7 @@ openai = __toESM(openai);
70
70
  const BAConfigSchema = koishi.Schema.object({
71
71
  require: koishi.Schema.object({}).description("必填设置"),
72
72
  key: koishi.Schema.string().pattern(/^[0-9a-f]{32}$/).role("secret").required().description("请输入一个32位小写字母的十六进制密钥(例如:9b8db7ae562b9864efefe06289cc5530),使用此密钥将你的B站登录信息存储在数据库中,请一定保存好此密钥。如果你忘记了此密钥,必须重新登录。你可以自行生成,或到这个网站生成:https://www.sexauth.com/"),
73
- master: koishi.Schema.intersect([koishi.Schema.object({ enable: koishi.Schema.boolean().default(false).description("是否开启主人账号功能,如果您的机器人没有私聊权限请不要开启此功能。开启后如果机器人运行错误会向您进行报告") }).description("主人账号"), koishi.Schema.union([koishi.Schema.object({
73
+ master: koishi.Schema.intersect([koishi.Schema.object({ enable: koishi.Schema.boolean().default(false).description("是否开启主人账号功能,开启后如果机器人运行错误会向您进行报告。如果您的机器人没有私聊权限请不要开启此功能") }).description("主人账号"), koishi.Schema.union([koishi.Schema.object({
74
74
  enable: koishi.Schema.const(true).required(),
75
75
  platform: koishi.Schema.union([
76
76
  "qq",
@@ -98,19 +98,19 @@ const BAConfigSchema = koishi.Schema.object({
98
98
  subTitle: koishi.Schema.object({}).description("订阅配置"),
99
99
  advancedSub: koishi.Schema.boolean().default(false).description("是否开启高级订阅,高级订阅是独立于本插件的一个专门用于订阅配置的插件,用于高度自定义订阅消息。若开启高级订阅,请打开该选项并下载插件 bilibili-notify-advanced-subscription"),
100
100
  subs: koishi.Schema.array(koishi.Schema.object({
101
- name: koishi.Schema.string().required().description("备注"),
101
+ name: koishi.Schema.string().required().description("UP昵称"),
102
102
  uid: koishi.Schema.string().required().description("UID和roomid"),
103
103
  dynamic: koishi.Schema.boolean().default(true).description("动态"),
104
- dynamicAtAll: koishi.Schema.boolean().default(false).description("动态At全体"),
104
+ dynamicAtAll: koishi.Schema.boolean().default(false).description("动态@全体"),
105
105
  live: koishi.Schema.boolean().default(true).description("直播"),
106
- liveAtAll: koishi.Schema.boolean().default(true).description("直播At全体"),
106
+ liveAtAll: koishi.Schema.boolean().default(true).description("直播@全体"),
107
107
  liveGuardBuy: koishi.Schema.boolean().default(false).description("上舰消息"),
108
108
  superchat: koishi.Schema.boolean().default(false).description("SC消息"),
109
109
  wordcloud: koishi.Schema.boolean().default(true).description("弹幕词云"),
110
110
  liveSummary: koishi.Schema.boolean().default(true).description("直播总结"),
111
111
  platform: koishi.Schema.string().required().description("平台名"),
112
112
  target: koishi.Schema.string().required().description("群号/频道号")
113
- })).role("table").description("输入订阅信息,自定义订阅内容; UID和roomid,如果经常在初始化插件遇到风控问题,请补充直播间房间号,使用英文逗号分隔例如,1234567,114514 群号/频道号格式:频道号,频道号 使用英文逗号分隔,例如 1234567,2345678"),
113
+ })).role("table").description("请在这里填写订阅信息;UP昵称是必填项,影响通知时显示的UP主昵称;UID和roomid,请填写订阅用户的UID,如果经常在初始化插件遇到风控问题,请补充直播间房间号,使用英文逗号分隔例如:1234567,114514;平台名,请填写adapter-xxxx中的xxxx,例如你的机器人使用的是adapter-onebot就填写onebot;群号/频道号,直接填写即可,如果有多个群聊或频道请使用英文逗号分隔,例如:1234567,2345678"),
114
114
  dynamic: koishi.Schema.object({}).description("动态推送设置"),
115
115
  dynamicUrl: koishi.Schema.boolean().default(false).description("发送动态时是否同时发送链接。注意:如果使用的是QQ官方机器人不能开启此项!"),
116
116
  dynamicCron: koishi.Schema.string().default("*/2 * * * *").description("动态监测时间,请填入cron表达式,请勿填入过短时间"),
@@ -4460,8 +4460,21 @@ const inject = [
4460
4460
  ];
4461
4461
  const name = "bilibili-notify";
4462
4462
  const usage = `
4463
- Bilibili-Notify
4464
- 如遇到使用问题或bug,请加群咨询 801338523
4463
+ <h1>Bilibili-Notify</h1>
4464
+ <p>使用问题请加群咨询 801338523</p>
4465
+
4466
+ ---
4467
+
4468
+ 使用说明:
4469
+ - 请仔细阅读subs的配置说明,并在订阅配置中填写正确的 UID 和订阅类型
4470
+ - 订阅类型包括:动态、直播等
4471
+
4472
+ 注意事项:
4473
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4474
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4475
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4476
+
4477
+ ---
4465
4478
  `;
4466
4479
  let globalConfig;
4467
4480
  var ServerManager = class extends koishi.Service {
package/lib/index.d.cts CHANGED
@@ -125,7 +125,7 @@ type Subscriptions = Record<string, Subscription>;
125
125
  //#region src/index.d.ts
126
126
  declare const inject: string[];
127
127
  declare const name = "bilibili-notify";
128
- declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
128
+ declare const usage = "\n<h1>Bilibili-Notify</h1>\n<p>\u4F7F\u7528\u95EE\u9898\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523</p>\n\n---\n\n\u4F7F\u7528\u8BF4\u660E\uFF1A\n- \u8BF7\u4ED4\u7EC6\u9605\u8BFBsubs\u7684\u914D\u7F6E\u8BF4\u660E\uFF0C\u5E76\u5728\u8BA2\u9605\u914D\u7F6E\u4E2D\u586B\u5199\u6B63\u786E\u7684 UID \u548C\u8BA2\u9605\u7C7B\u578B\n- \u8BA2\u9605\u7C7B\u578B\u5305\u62EC\uFF1A\u52A8\u6001\u3001\u76F4\u64AD\u7B49\n\n\u6CE8\u610F\u4E8B\u9879\uFF1A\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n\n---\n";
129
129
  declare module "koishi" {
130
130
  interface Context {
131
131
  "bilibili-notify": ServerManager;
package/lib/index.d.mts CHANGED
@@ -125,7 +125,7 @@ type Subscriptions = Record<string, Subscription>;
125
125
  //#region src/index.d.ts
126
126
  declare const inject: string[];
127
127
  declare const name = "bilibili-notify";
128
- declare const usage = "\n\tBilibili-Notify\n\t\u5982\u9047\u5230\u4F7F\u7528\u95EE\u9898\u6216bug\uFF0C\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523\n";
128
+ declare const usage = "\n<h1>Bilibili-Notify</h1>\n<p>\u4F7F\u7528\u95EE\u9898\u8BF7\u52A0\u7FA4\u54A8\u8BE2 801338523</p>\n\n---\n\n\u4F7F\u7528\u8BF4\u660E\uFF1A\n- \u8BF7\u4ED4\u7EC6\u9605\u8BFBsubs\u7684\u914D\u7F6E\u8BF4\u660E\uFF0C\u5E76\u5728\u8BA2\u9605\u914D\u7F6E\u4E2D\u586B\u5199\u6B63\u786E\u7684 UID \u548C\u8BA2\u9605\u7C7B\u578B\n- \u8BA2\u9605\u7C7B\u578B\u5305\u62EC\uFF1A\u52A8\u6001\u3001\u76F4\u64AD\u7B49\n\n\u6CE8\u610F\u4E8B\u9879\uFF1A\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n- \u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F onebot \u673A\u5668\u4EBA\uFF0C\u5E73\u53F0\u540D\u8BF7\u586B\u5199 onebot \u800C\u4E0D\u662F qq\n\n---\n";
129
129
  declare module "koishi" {
130
130
  interface Context {
131
131
  "bilibili-notify": ServerManager;
package/lib/index.mjs CHANGED
@@ -41,7 +41,7 @@ var __export = (all, symbols) => {
41
41
  const BAConfigSchema = Schema.object({
42
42
  require: Schema.object({}).description("必填设置"),
43
43
  key: Schema.string().pattern(/^[0-9a-f]{32}$/).role("secret").required().description("请输入一个32位小写字母的十六进制密钥(例如:9b8db7ae562b9864efefe06289cc5530),使用此密钥将你的B站登录信息存储在数据库中,请一定保存好此密钥。如果你忘记了此密钥,必须重新登录。你可以自行生成,或到这个网站生成:https://www.sexauth.com/"),
44
- master: Schema.intersect([Schema.object({ enable: Schema.boolean().default(false).description("是否开启主人账号功能,如果您的机器人没有私聊权限请不要开启此功能。开启后如果机器人运行错误会向您进行报告") }).description("主人账号"), Schema.union([Schema.object({
44
+ master: Schema.intersect([Schema.object({ enable: Schema.boolean().default(false).description("是否开启主人账号功能,开启后如果机器人运行错误会向您进行报告。如果您的机器人没有私聊权限请不要开启此功能") }).description("主人账号"), Schema.union([Schema.object({
45
45
  enable: Schema.const(true).required(),
46
46
  platform: Schema.union([
47
47
  "qq",
@@ -69,19 +69,19 @@ const BAConfigSchema = Schema.object({
69
69
  subTitle: Schema.object({}).description("订阅配置"),
70
70
  advancedSub: Schema.boolean().default(false).description("是否开启高级订阅,高级订阅是独立于本插件的一个专门用于订阅配置的插件,用于高度自定义订阅消息。若开启高级订阅,请打开该选项并下载插件 bilibili-notify-advanced-subscription"),
71
71
  subs: Schema.array(Schema.object({
72
- name: Schema.string().required().description("备注"),
72
+ name: Schema.string().required().description("UP昵称"),
73
73
  uid: Schema.string().required().description("UID和roomid"),
74
74
  dynamic: Schema.boolean().default(true).description("动态"),
75
- dynamicAtAll: Schema.boolean().default(false).description("动态At全体"),
75
+ dynamicAtAll: Schema.boolean().default(false).description("动态@全体"),
76
76
  live: Schema.boolean().default(true).description("直播"),
77
- liveAtAll: Schema.boolean().default(true).description("直播At全体"),
77
+ liveAtAll: Schema.boolean().default(true).description("直播@全体"),
78
78
  liveGuardBuy: Schema.boolean().default(false).description("上舰消息"),
79
79
  superchat: Schema.boolean().default(false).description("SC消息"),
80
80
  wordcloud: Schema.boolean().default(true).description("弹幕词云"),
81
81
  liveSummary: Schema.boolean().default(true).description("直播总结"),
82
82
  platform: Schema.string().required().description("平台名"),
83
83
  target: Schema.string().required().description("群号/频道号")
84
- })).role("table").description("输入订阅信息,自定义订阅内容; UID和roomid,如果经常在初始化插件遇到风控问题,请补充直播间房间号,使用英文逗号分隔例如,1234567,114514 群号/频道号格式:频道号,频道号 使用英文逗号分隔,例如 1234567,2345678"),
84
+ })).role("table").description("请在这里填写订阅信息;UP昵称是必填项,影响通知时显示的UP主昵称;UID和roomid,请填写订阅用户的UID,如果经常在初始化插件遇到风控问题,请补充直播间房间号,使用英文逗号分隔例如:1234567,114514;平台名,请填写adapter-xxxx中的xxxx,例如你的机器人使用的是adapter-onebot就填写onebot;群号/频道号,直接填写即可,如果有多个群聊或频道请使用英文逗号分隔,例如:1234567,2345678"),
85
85
  dynamic: Schema.object({}).description("动态推送设置"),
86
86
  dynamicUrl: Schema.boolean().default(false).description("发送动态时是否同时发送链接。注意:如果使用的是QQ官方机器人不能开启此项!"),
87
87
  dynamicCron: Schema.string().default("*/2 * * * *").description("动态监测时间,请填入cron表达式,请勿填入过短时间"),
@@ -4431,8 +4431,21 @@ const inject = [
4431
4431
  ];
4432
4432
  const name = "bilibili-notify";
4433
4433
  const usage = `
4434
- Bilibili-Notify
4435
- 如遇到使用问题或bug,请加群咨询 801338523
4434
+ <h1>Bilibili-Notify</h1>
4435
+ <p>使用问题请加群咨询 801338523</p>
4436
+
4437
+ ---
4438
+
4439
+ 使用说明:
4440
+ - 请仔细阅读subs的配置说明,并在订阅配置中填写正确的 UID 和订阅类型
4441
+ - 订阅类型包括:动态、直播等
4442
+
4443
+ 注意事项:
4444
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4445
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4446
+ - 如果你使用的是 onebot 机器人,平台名请填写 onebot 而不是 qq
4447
+
4448
+ ---
4436
4449
  `;
4437
4450
  let globalConfig;
4438
4451
  var ServerManager = class extends Service {
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.5.0-alpha.1",
4
+ "version": "3.5.0",
5
5
  "main": "./lib/index.cjs",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [