koishi-plugin-noah 1.1.7 → 1.1.8
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 +3 -3
- package/package.json +46 -46
package/lib/index.js
CHANGED
|
@@ -2760,17 +2760,17 @@ function vf(ctx, config) {
|
|
|
2760
2760
|
const sdvxService = serverManager.getGameService(server2.type, "sdvx");
|
|
2761
2761
|
const scoreService = ScoreService.getInstance();
|
|
2762
2762
|
try {
|
|
2763
|
-
|
|
2763
|
+
let scoreList = await sdvxService.getAllScore(ctx, server2.baseUrl, card2.code, config);
|
|
2764
2764
|
if (scoreList.length === 0) {
|
|
2765
2765
|
return session.text(".no-scores-found");
|
|
2766
2766
|
}
|
|
2767
|
-
let best50ScoreList = scoreService.getBest50(scoreList);
|
|
2768
2767
|
if (options.filter) {
|
|
2769
2768
|
const filterOptions = parseFilterQuery(options.filter);
|
|
2770
2769
|
if (Object.keys(filterOptions).length > 0) {
|
|
2771
|
-
|
|
2770
|
+
scoreList = scoreService.filterScores(scoreList, filterOptions);
|
|
2772
2771
|
}
|
|
2773
2772
|
}
|
|
2773
|
+
const best50ScoreList = scoreService.getBest50(scoreList);
|
|
2774
2774
|
session.send(session.text(".drawing"));
|
|
2775
2775
|
const drawerManager = DrawerManager.getInstance(ctx);
|
|
2776
2776
|
const sdvxDrawer = drawerManager.getDrawer("sdvx");
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"adm-zip": "^0.5.16",
|
|
25
|
-
"koishi-plugin-adapter-onebot": "^6.8.0",
|
|
26
|
-
"sharp": "^0.33.5",
|
|
27
|
-
"xml2js": "^0.6.2"
|
|
28
|
-
},
|
|
29
|
-
"koishi": {
|
|
30
|
-
"description": {
|
|
31
|
-
"en": "Multifunctional, multi-platform-supported arcade music game tool bot.",
|
|
32
|
-
"zh": "多功能,多平台支持的街机音游工具机器人。"
|
|
2
|
+
"name": "koishi-plugin-noah",
|
|
3
|
+
"version": "1.1.8",
|
|
4
|
+
"contributors": [
|
|
5
|
+
"Logthm <logthm@outlook.com>"
|
|
6
|
+
],
|
|
7
|
+
"homepage": "https://docs.logthm.com/noah",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"typings": "lib/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"lib",
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"chatbot",
|
|
17
|
+
"koishi",
|
|
18
|
+
"plugin"
|
|
19
|
+
],
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"koishi": "^4.18.7"
|
|
33
22
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"adm-zip": "^0.5.16",
|
|
25
|
+
"koishi-plugin-adapter-onebot": "^6.8.0",
|
|
26
|
+
"sharp": "^0.33.5",
|
|
27
|
+
"xml2js": "^0.6.2"
|
|
39
28
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
"koishi": {
|
|
30
|
+
"description": {
|
|
31
|
+
"en": "Multifunctional, multi-platform-supported arcade music game tool bot.",
|
|
32
|
+
"zh": "多功能,多平台支持的街机音游工具机器人。"
|
|
33
|
+
},
|
|
34
|
+
"service": {
|
|
35
|
+
"required": [
|
|
36
|
+
"database",
|
|
37
|
+
"skia"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"locales": [
|
|
41
|
+
"en",
|
|
42
|
+
"zh"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@ltxhhz/koishi-plugin-skia-canvas": "^0.0.8",
|
|
47
|
+
"@types/adm-zip": "^0",
|
|
48
|
+
"@types/xml2js": "^0"
|
|
49
|
+
}
|
|
50
50
|
}
|