koishi-plugin-bilibili-notify 1.2.12-alpha.0 → 1.2.12-alpha.1
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 +3 -3
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/comRegister.js
CHANGED
|
@@ -880,7 +880,7 @@ class ComRegister {
|
|
|
880
880
|
else if (buffer) {
|
|
881
881
|
this.logger.info('推送动态中,使用page模式');
|
|
882
882
|
// pic不存在,说明使用的是page模式
|
|
883
|
-
await this.sendMsg(ctx, guildId, bot, (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'),
|
|
883
|
+
await this.sendMsg(ctx, guildId, bot, (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'), dUrl] }));
|
|
884
884
|
}
|
|
885
885
|
else {
|
|
886
886
|
this.logger.info(items[num].modules.module_author.name + '发布了一条动态,但是推送失败');
|
|
@@ -925,11 +925,11 @@ class ComRegister {
|
|
|
925
925
|
// 推送直播信息
|
|
926
926
|
// pic 存在,使用的是render模式
|
|
927
927
|
if (pic) {
|
|
928
|
-
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }),
|
|
928
|
+
let msg = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg] });
|
|
929
929
|
return await this.sendMsg(ctx, guildId, bot, pic + msg);
|
|
930
930
|
}
|
|
931
931
|
// pic不存在,说明使用的是page模式
|
|
932
|
-
await this.sendMsg(ctx, guildId, bot, (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'),
|
|
932
|
+
await this.sendMsg(ctx, guildId, bot, (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [koishi_1.h.image(buffer, 'image/png'), atAll && (0, jsx_runtime_1.jsx)("at", { type: "all" }), liveStartMsg && liveStartMsg] }));
|
|
933
933
|
};
|
|
934
934
|
return async () => {
|
|
935
935
|
try {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
- ver 1.2.11-alpha.0 新增自定义UA的设置。动态推送出错时,现在会直接取消订阅该UP主而不是取消订阅动态
|
|
153
153
|
- ver 1.2.11-alpha.1 修复报错 `app TypeError: Cannot read properties of undefined (reading 'toString')`,添加更多日志输出
|
|
154
154
|
- ver 1.2.12-alpha.0 新增 `sys` 类指令,包括子命令:`start`、`stop`、`restart` 分别为插件的启动、停止和重启,需要权限等级5才能使用。现在,账号出现某些问题后,不会再清除订阅信息,而是停止插件,在排除问题后需要使用指令 `sys start` 手动启动插件。修复一个动态推送的bug
|
|
155
|
+
- ver 1.2.12-alpha.1 删除直播推送时的多余空格
|
|
155
156
|
|
|
156
157
|
## 交流群
|
|
157
158
|
|