koishi-plugin-bilibili-notify 3.0.0-alpha.13 → 3.0.0-alpha.14
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/lib/database.d.ts +2 -2
- package/lib/database.js +15 -15
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/readme.md +2 -1
package/lib/comRegister.js
CHANGED
|
@@ -7,6 +7,9 @@ const jsx_runtime_1 = require("@satorijs/element/jsx-runtime");
|
|
|
7
7
|
const koishi_1 = require("koishi");
|
|
8
8
|
// 导入qrcode
|
|
9
9
|
const qrcode_1 = __importDefault(require("qrcode"));
|
|
10
|
+
// 弹幕词云
|
|
11
|
+
// TODO:WorlCloud
|
|
12
|
+
// import { Segment } from "segmentit";
|
|
10
13
|
var LiveType;
|
|
11
14
|
(function (LiveType) {
|
|
12
15
|
LiveType[LiveType["NotLiveBroadcast"] = 0] = "NotLiveBroadcast";
|
|
@@ -16,7 +19,7 @@ var LiveType;
|
|
|
16
19
|
})(LiveType || (LiveType = {}));
|
|
17
20
|
class ComRegister {
|
|
18
21
|
// 必须服务
|
|
19
|
-
static inject = ["ba", "gi", "database", "
|
|
22
|
+
static inject = ["ba", "gi", "database", "bl", "sm"];
|
|
20
23
|
// 定义数组:QQ相关bot
|
|
21
24
|
qqRelatedBotList = [
|
|
22
25
|
"qq",
|
package/lib/database.d.ts
CHANGED
package/lib/database.js
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.name = void 0;
|
|
4
4
|
exports.apply = apply;
|
|
5
|
-
exports.name =
|
|
5
|
+
exports.name = "Database";
|
|
6
6
|
function apply(ctx) {
|
|
7
7
|
// 新增Bilibili表
|
|
8
|
-
ctx.model.extend(
|
|
9
|
-
id:
|
|
10
|
-
uid:
|
|
11
|
-
room_id:
|
|
12
|
-
dynamic:
|
|
13
|
-
live:
|
|
14
|
-
target:
|
|
15
|
-
platform:
|
|
16
|
-
time:
|
|
8
|
+
ctx.model.extend("bilibili", {
|
|
9
|
+
id: "unsigned",
|
|
10
|
+
uid: "string",
|
|
11
|
+
room_id: "string",
|
|
12
|
+
dynamic: "unsigned",
|
|
13
|
+
live: "unsigned",
|
|
14
|
+
target: "string",
|
|
15
|
+
platform: "string",
|
|
16
|
+
time: "timestamp",
|
|
17
17
|
}, { autoInc: true });
|
|
18
18
|
// 新增LoginBili表
|
|
19
|
-
ctx.model.extend(
|
|
20
|
-
id:
|
|
21
|
-
bili_cookies:
|
|
22
|
-
bili_refresh_token:
|
|
23
|
-
dynamic_group_id:
|
|
19
|
+
ctx.model.extend("loginBili", {
|
|
20
|
+
id: "unsigned",
|
|
21
|
+
bili_cookies: "text",
|
|
22
|
+
bili_refresh_token: "text",
|
|
23
|
+
dynamic_group_id: "string",
|
|
24
24
|
});
|
|
25
25
|
}
|
package/lib/index.js
CHANGED
|
@@ -46,7 +46,7 @@ const Database = __importStar(require("./database"));
|
|
|
46
46
|
const generateImg_1 = __importDefault(require("./generateImg"));
|
|
47
47
|
const biliAPI_1 = __importDefault(require("./biliAPI"));
|
|
48
48
|
const blive_1 = __importDefault(require("./blive"));
|
|
49
|
-
exports.inject = ["puppeteer", "
|
|
49
|
+
exports.inject = ["puppeteer", "database", "notifier"];
|
|
50
50
|
exports.name = "bilibili-notify";
|
|
51
51
|
let globalConfig;
|
|
52
52
|
class ServerManager extends koishi_1.Service {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -224,7 +224,8 @@
|
|
|
224
224
|
- ver 3.0.0-alpha.10 修复:连续推送两次开播通知
|
|
225
225
|
- ver 3.0.0-alpha.11 新增:直播结束后推送弹幕词云,直播推送上舰消息; 修复:直播推送都是同一张画面; 移除:直播推送弹幕消息
|
|
226
226
|
- ver 3.0.0-alpha.12 修复:上一版本无法安装
|
|
227
|
-
- ver 3.0.0-alpha.13 优化:将ESLint替换为Biome; 修复:增加弹幕词云功能产生的bug;
|
|
227
|
+
- ver 3.0.0-alpha.13 优化:将ESLint替换为Biome; 修复:增加弹幕词云功能产生的bug; 禁用:弹幕词云功能并不能正常运作,暂时将该功能禁用
|
|
228
|
+
- ver 3.0.0-alpha.14 优化:移除不需要的服务
|
|
228
229
|
|
|
229
230
|
## 交流群
|
|
230
231
|
|