koishi-plugin-xsxn-vue3 1.0.20 → 1.0.22
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 -13
- package/package.json +1 -1
- package/readme.md +1 -1
package/lib/index.js
CHANGED
|
@@ -60,20 +60,13 @@ async function apply(ctx, cfg) {
|
|
|
60
60
|
6.天柱 电母
|
|
61
61
|
7.设施 篝火`;
|
|
62
62
|
});
|
|
63
|
-
ctx.command("queryCrop
|
|
64
|
-
if (name2 == void 0 || name2.length == 0)
|
|
65
|
-
return "参数不可为空,如:作物+空格+西";
|
|
63
|
+
ctx.command("queryCrop [name]").alias("作物").action((_, name2) => {
|
|
66
64
|
return getPage(cfg.url + `/queryList?type=0&name=${name2}`, _.session);
|
|
67
65
|
});
|
|
68
|
-
ctx.command("queryInsect
|
|
69
|
-
if (name2 == void 0 || name2.length == 0)
|
|
70
|
-
return "参数不可为空,如:虫+空格+菜粉蝶、查虫+空格+传说";
|
|
66
|
+
ctx.command("queryInsect [name] [isSort]").alias("虫").action((_, name2, isSort) => {
|
|
71
67
|
return getPage(cfg.url + `/queryList?type=1&name=${name2}&isSort=${isSort}`, _.session);
|
|
72
68
|
});
|
|
73
|
-
ctx.command("queryFish
|
|
74
|
-
if (name2 == void 0 || name2.length == 0)
|
|
75
|
-
return "参数不可为空,如:鱼+空格+鲲、查虫+空格+传说";
|
|
76
|
-
console.log(isSort);
|
|
69
|
+
ctx.command("queryFish [name] [isSort]").alias("鱼").action((_, name2, isSort) => {
|
|
77
70
|
return getPage(cfg.url + `/queryList?type=2&name=${name2}&isSort=${isSort}`, _.session);
|
|
78
71
|
});
|
|
79
72
|
ctx.command("queryBird [name]").alias("鸟").action((_, name2) => {
|
|
@@ -96,11 +89,8 @@ async function apply(ctx, cfg) {
|
|
|
96
89
|
return getPage(cfg.url + `/queryCookBook?name=${name2}`, _.session);
|
|
97
90
|
});
|
|
98
91
|
ctx.command("queryLike [name]").alias("卡池").action((_, name2) => {
|
|
99
|
-
const specialChars = ["每", "与", ".", "增", "加", "等", "级", "的", "得", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "%", "$", "#", "@", "!", "&", "*", "(", ")", "+", "=", "<", ">", "{", "}", "[", "]", "|", "\\", "/"];
|
|
100
92
|
if (name2 == void 0 || name2.length == 0)
|
|
101
93
|
return "参数不可为空,如:卡池+空格+贡献";
|
|
102
|
-
if (name2.match(new RegExp(`[${specialChars.join("")}]`)))
|
|
103
|
-
return "兄弟,不要搞这种";
|
|
104
94
|
return getPage(cfg.url + `/queryCompanion?name=${name2}`, _.session);
|
|
105
95
|
});
|
|
106
96
|
ctx.command("queryTianzhu <name>").alias("天柱").action((_, name2) => {
|
package/package.json
CHANGED
package/readme.md
CHANGED