koishi-plugin-bilibili-notify 3.2.11-alpha.4 → 3.2.11-alpha.7
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.js +8 -8
- package/lib/index.mjs +8 -9
- package/package.json +17 -11
- package/readme.md +3 -0
package/lib/index.js
CHANGED
|
@@ -366,10 +366,10 @@ var ComRegister = class {
|
|
|
366
366
|
subNotifier;
|
|
367
367
|
ctx;
|
|
368
368
|
subManager = [];
|
|
369
|
-
dynamicTimelineManager =
|
|
370
|
-
liveStatusManager =
|
|
371
|
-
liveMsgManager =
|
|
372
|
-
pushArrMap =
|
|
369
|
+
dynamicTimelineManager = new Map();
|
|
370
|
+
liveStatusManager = new Map();
|
|
371
|
+
liveMsgManager = new Map();
|
|
372
|
+
pushArrMap = new Map();
|
|
373
373
|
loginDBData;
|
|
374
374
|
privateBot;
|
|
375
375
|
dynamicJob;
|
|
@@ -3098,8 +3098,8 @@ var GenerateImg = class extends koishi.Service {
|
|
|
3098
3098
|
</div>
|
|
3099
3099
|
</div>
|
|
3100
3100
|
|
|
3101
|
-
<script src="${wordcloudJS}"
|
|
3102
|
-
<script src="${renderFunc}"
|
|
3101
|
+
<script src="${wordcloudJS}"></script>
|
|
3102
|
+
<script src="${renderFunc}"></script>
|
|
3103
3103
|
<script>
|
|
3104
3104
|
const canvas = document.getElementById('wordCloudCanvas');
|
|
3105
3105
|
const ctx = canvas.getContext('2d');
|
|
@@ -3123,7 +3123,7 @@ var GenerateImg = class extends koishi.Service {
|
|
|
3123
3123
|
densityTarget: 0.3,
|
|
3124
3124
|
weightExponent: 0.4
|
|
3125
3125
|
});
|
|
3126
|
-
|
|
3126
|
+
</script>
|
|
3127
3127
|
</body>
|
|
3128
3128
|
|
|
3129
3129
|
</html>
|
|
@@ -3191,7 +3191,7 @@ var GenerateImg = class extends koishi.Service {
|
|
|
3191
3191
|
return parts.length > 0 ? `${sign}${parts.join("")}` : "0秒";
|
|
3192
3192
|
}
|
|
3193
3193
|
unixTimestampToString(timestamp) {
|
|
3194
|
-
const date =
|
|
3194
|
+
const date = new Date(timestamp * 1e3);
|
|
3195
3195
|
const year = date.getFullYear();
|
|
3196
3196
|
const month = `0${date.getMonth() + 1}`.slice(-2);
|
|
3197
3197
|
const day = `0${date.getDate()}`.slice(-2);
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "node:module";
|
|
2
1
|
import { Schema, Service, Universal, h } from "koishi";
|
|
3
2
|
import "@koishijs/plugin-notifier";
|
|
4
3
|
import "@koishijs/plugin-help";
|
|
@@ -348,10 +347,10 @@ var ComRegister = class {
|
|
|
348
347
|
subNotifier;
|
|
349
348
|
ctx;
|
|
350
349
|
subManager = [];
|
|
351
|
-
dynamicTimelineManager =
|
|
352
|
-
liveStatusManager =
|
|
353
|
-
liveMsgManager =
|
|
354
|
-
pushArrMap =
|
|
350
|
+
dynamicTimelineManager = new Map();
|
|
351
|
+
liveStatusManager = new Map();
|
|
352
|
+
liveMsgManager = new Map();
|
|
353
|
+
pushArrMap = new Map();
|
|
355
354
|
loginDBData;
|
|
356
355
|
privateBot;
|
|
357
356
|
dynamicJob;
|
|
@@ -3080,8 +3079,8 @@ var GenerateImg = class extends Service {
|
|
|
3080
3079
|
</div>
|
|
3081
3080
|
</div>
|
|
3082
3081
|
|
|
3083
|
-
<script src="${wordcloudJS}"
|
|
3084
|
-
<script src="${renderFunc}"
|
|
3082
|
+
<script src="${wordcloudJS}"></script>
|
|
3083
|
+
<script src="${renderFunc}"></script>
|
|
3085
3084
|
<script>
|
|
3086
3085
|
const canvas = document.getElementById('wordCloudCanvas');
|
|
3087
3086
|
const ctx = canvas.getContext('2d');
|
|
@@ -3105,7 +3104,7 @@ var GenerateImg = class extends Service {
|
|
|
3105
3104
|
densityTarget: 0.3,
|
|
3106
3105
|
weightExponent: 0.4
|
|
3107
3106
|
});
|
|
3108
|
-
|
|
3107
|
+
</script>
|
|
3109
3108
|
</body>
|
|
3110
3109
|
|
|
3111
3110
|
</html>
|
|
@@ -3173,7 +3172,7 @@ var GenerateImg = class extends Service {
|
|
|
3173
3172
|
return parts.length > 0 ? `${sign}${parts.join("")}` : "0秒";
|
|
3174
3173
|
}
|
|
3175
3174
|
unixTimestampToString(timestamp) {
|
|
3176
|
-
const date =
|
|
3175
|
+
const date = new Date(timestamp * 1e3);
|
|
3177
3176
|
const year = date.getFullYear();
|
|
3178
3177
|
const month = `0${date.getMonth() + 1}`.slice(-2);
|
|
3179
3178
|
const day = `0${date.getDate()}`.slice(-2);
|
package/package.json
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-bilibili-notify",
|
|
3
3
|
"description": "Koishi bilibili notify plugin",
|
|
4
|
-
"version": "3.2.11-alpha.
|
|
4
|
+
"version": "3.2.11-alpha.7",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"contributors": [
|
|
12
|
+
"Akokko <admin@akokko.com>"
|
|
13
|
+
],
|
|
11
14
|
"license": "MIT",
|
|
15
|
+
"homepage": "https://www.npmjs.com/package/koishi-plugin-bilibili-notify",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/Akokk0/koishi-plugin-bilibili-notify"
|
|
19
|
+
},
|
|
12
20
|
"keywords": [
|
|
13
21
|
"chatbot",
|
|
14
22
|
"koishi",
|
|
15
|
-
"plugin"
|
|
23
|
+
"plugin",
|
|
24
|
+
"bilibili",
|
|
25
|
+
"bilibili-notify"
|
|
16
26
|
],
|
|
17
27
|
"scripts": {
|
|
18
28
|
"build": "tsdown"
|
|
@@ -59,19 +69,15 @@
|
|
|
59
69
|
}
|
|
60
70
|
},
|
|
61
71
|
"publishConfig": {
|
|
62
|
-
"access": "public"
|
|
63
|
-
"exports": {
|
|
64
|
-
".": {
|
|
65
|
-
"import": "./lib/index.mjs",
|
|
66
|
-
"require": "./lib/index.js"
|
|
67
|
-
},
|
|
68
|
-
"./package.json": "./package.json"
|
|
69
|
-
}
|
|
72
|
+
"access": "public"
|
|
70
73
|
},
|
|
71
74
|
"module": "./lib/index.mjs",
|
|
72
75
|
"types": "./lib/index.d.ts",
|
|
73
76
|
"exports": {
|
|
74
|
-
".":
|
|
77
|
+
".": {
|
|
78
|
+
"import": "./lib/index.mjs",
|
|
79
|
+
"require": "./lib/index.js"
|
|
80
|
+
},
|
|
75
81
|
"./package.json": "./package.json"
|
|
76
82
|
}
|
|
77
83
|
}
|
package/readme.md
CHANGED