koishi-plugin-bilibili-notify 3.0.0-alpha.1 → 3.0.0-alpha.3

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.
@@ -1455,8 +1455,8 @@ class GenerateImg extends koishi_1.Service {
1455
1455
  const seconds = differenceInSeconds % 60;
1456
1456
  // 返回格式化的字符串
1457
1457
  return days ?
1458
- `${days} 天 ${hours}小时${minutes.toString().padStart(2, '0')}分钟${seconds.toString().padStart(2, '0')}秒` :
1459
- `${hours}小时${minutes.toString().padStart(2, '0')}分钟${seconds.toString().padStart(2, '0')}秒`;
1458
+ `${days} 天 ${hours}小时${minutes.toString().padStart(2, '0')}分${seconds.toString().padStart(2, '0')}秒` :
1459
+ `${hours}小时${minutes.toString().padStart(2, '0')}分${seconds.toString().padStart(2, '0')}秒`;
1460
1460
  }
1461
1461
  unixTimestampToString(timestamp) {
1462
1462
  const date = new Date(timestamp * 1000);
package/lib/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export interface Config {
25
25
  channelId: string;
26
26
  dynamic: boolean;
27
27
  live: boolean;
28
+ liveDanmaku: boolean;
28
29
  atAll: boolean;
29
30
  }>;
30
31
  platform: string;
@@ -35,8 +36,6 @@ export interface Config {
35
36
  dynamicCheckNumber: number;
36
37
  dynamicLoopTime: '1分钟' | '2分钟' | '3分钟' | '5分钟' | '10分钟' | '20分钟';
37
38
  live: {};
38
- changeMasterInfoApi: boolean;
39
- liveStartAtAll: boolean;
40
39
  restartPush: boolean;
41
40
  pushTime: number;
42
41
  danmakuPushTime: number;
package/lib/index.js CHANGED
@@ -104,6 +104,7 @@ exports.Config = koishi_1.Schema.object({
104
104
  channelId: koishi_1.Schema.string().description('频道/群组号'),
105
105
  dynamic: koishi_1.Schema.boolean().description('该频道/群组是否推送动态信息'),
106
106
  live: koishi_1.Schema.boolean().description('该频道/群组是否推送直播通知'),
107
+ liveDanmaku: koishi_1.Schema.boolean().description('该频道/群组是否推送弹幕消息'),
107
108
  atAll: koishi_1.Schema.boolean().description('推送开播通知时是否艾特全体成员')
108
109
  })).description('频道/群组信息'),
109
110
  platform: koishi_1.Schema.string().description('推送平台')
@@ -125,12 +126,6 @@ exports.Config = koishi_1.Schema.object({
125
126
  .default('2分钟')
126
127
  .description('设定多久检测一次动态。若需动态的时效性,可以设置为1分钟。若订阅的UP主经常在短时间内连着发多条动态应该将该值提高,否则会出现动态漏推送和晚推送的问题,默认值为2分钟'),
127
128
  live: koishi_1.Schema.object({}).description('直播推送设置'),
128
- changeMasterInfoApi: koishi_1.Schema.boolean()
129
- .default(false)
130
- .description('是否切换获取主播信息API,在遇到错误getMasterInfo()时可以尝试切换'),
131
- liveStartAtAll: koishi_1.Schema.boolean()
132
- .default(false)
133
- .description('直播开始时艾特全体成员,默认关闭'),
134
129
  restartPush: koishi_1.Schema.boolean()
135
130
  .default(true)
136
131
  .description('插件重启后,如果订阅的主播正在直播,是否进行一次推送,默认开启'),
@@ -316,8 +311,6 @@ class ServerManager extends koishi_1.Service {
316
311
  master: globalConfig.master,
317
312
  unlockSubLimits: globalConfig.unlockSubLimits,
318
313
  automaticResend: globalConfig.automaticResend,
319
- changeMasterInfoApi: globalConfig.changeMasterInfoApi,
320
- liveStartAtAll: globalConfig.liveStartAtAll,
321
314
  restartPush: globalConfig.restartPush,
322
315
  pushTime: globalConfig.pushTime,
323
316
  customLiveStart: globalConfig.customLiveStart,
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.1",
4
+ "version": "3.0.0-alpha.3",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -212,7 +212,9 @@
212
212
  - ver 2.0.0-alpha.23 优化:将艾特全体成员消息单独发送
213
213
 
214
214
  - ver 3.0.0-alpha.0 重构:直播 新增:直播弹幕推送到群
215
- - ver 3.0.0-alpha.1 修复:只订阅直播也会将该UP主的动态进行推送、推送过的动态过一段时间又会再次推送
215
+ - ver 3.0.0-alpha.1 测试版本
216
+ - ver 3.0.0-alpha.2 修复:只订阅直播也会将该UP主的动态进行推送、推送过的动态过一段时间又会再次推送
217
+ - ver 3.0.0-alpha.3 修复:未开启弹幕推送也不会推送直播通知卡片
216
218
 
217
219
  ## 交流群
218
220