koishi-plugin-bilibili-notify 1.2.0-rc.2 → 1.2.0-rc.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.
- package/lib/comRegister.js +4 -1
- package/package.json +1 -1
- package/readme.md +2 -0
package/lib/comRegister.js
CHANGED
|
@@ -332,7 +332,7 @@ class ComRegister {
|
|
|
332
332
|
content = await ctx.biliAPI.getUserInfo(mid);
|
|
333
333
|
}
|
|
334
334
|
catch (e) {
|
|
335
|
-
return 'bili sub getUserInfo()
|
|
335
|
+
return 'bili sub getUserInfo() 本次网络请求失败,请重试';
|
|
336
336
|
}
|
|
337
337
|
// 判断是否有其他问题
|
|
338
338
|
if (content.code !== 0) {
|
|
@@ -454,6 +454,7 @@ class ComRegister {
|
|
|
454
454
|
catch (e) {
|
|
455
455
|
return 'bili sub指令 getMasterInfo() 网络请求失败,请重试';
|
|
456
456
|
}
|
|
457
|
+
this.logger.info(session.event.platform);
|
|
457
458
|
// 需要订阅直播
|
|
458
459
|
if (liveMsg) {
|
|
459
460
|
await session.execute(`bili live ${roomId} ${targetId.split(',').join(' ')} -b ${session.event.platform}`);
|
|
@@ -476,6 +477,7 @@ class ComRegister {
|
|
|
476
477
|
.example('bili dynamic 1194210119 订阅UID为1194210119的动态')
|
|
477
478
|
.action(async ({ session, options }, uid, ...guildId) => {
|
|
478
479
|
this.logger.info('调用bili.dynamic指令');
|
|
480
|
+
this.logger.info('Platform:', options.bot);
|
|
479
481
|
// 如果uid为空则返回
|
|
480
482
|
if (!uid)
|
|
481
483
|
return `${uid}非法调用 dynamic 指令`; // 用户uid不能为空
|
|
@@ -527,6 +529,7 @@ class ComRegister {
|
|
|
527
529
|
.example('bili live 26316137 订阅房间号为26316137的直播间')
|
|
528
530
|
.action(async ({ options }, roomId, ...guildId) => {
|
|
529
531
|
this.logger.info('调用bili.live指令');
|
|
532
|
+
this.logger.info('Platform:', options.bot);
|
|
530
533
|
// 如果room_id为空则返回
|
|
531
534
|
if (!roomId)
|
|
532
535
|
return `${roomId}非法调用 dynamic 指令`; // 订阅主播房间号不能为空
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -109,6 +109,8 @@
|
|
|
109
109
|
- ver 1.2.0-alpha.5 修复了与PostgreSQL不兼容的问题,优化了图片推送,增强了推送容错
|
|
110
110
|
- ver 1.2.0-rc.0 现已支持自定义开播和下播提示语(实验性)
|
|
111
111
|
- ver 1.2.0-rc.1 现已支持Telegram平台(实验性)
|
|
112
|
+
- ver 1.2.0-rc.2 添加更多日志输出
|
|
113
|
+
- ver 1.2.0-rc.3 针对Telegram的Bug测试版本
|
|
112
114
|
|
|
113
115
|
## 交流群
|
|
114
116
|
801338523 使用问题或bug都可以在群里提出
|