koishi-plugin-xsxn-vue3 1.0.18 → 1.0.20
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 +10 -16
- package/package.json +1 -1
- package/readme.md +4 -2
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
23
23
|
// src/locales/zh-CN.yml
|
|
24
24
|
var require_zh_CN = __commonJS({
|
|
25
25
|
"src/locales/zh-CN.yml"(exports, module2) {
|
|
26
|
-
module2.exports = { commands: { querycrop: { description: "作物", examples: "作物 <作物名称>" }, querycookbook: { description: "食谱", examples: "用法:\n食谱+空格+[可为空、食谱名称、食材]" }, querydispatch: { description: "派遣" }, queryinsect: { description: "虫", examples: "用法:\n虫+空格+[
|
|
26
|
+
module2.exports = { commands: { querycrop: { description: "作物", examples: "作物 <作物名称>" }, querycookbook: { description: "食谱", examples: "用法:\n食谱+空格+[可为空、食谱名称、食材]" }, querydispatch: { description: "派遣" }, queryinsect: { description: "虫", examples: "用法:\n虫+空格+[虫名称、虫品质、时间、地点]+[可选排序参数0、1,排序默认为0 对应岛图鉴]" }, queryfish: { description: "鱼", examples: "用法:\n鱼+空格+[鱼名称、鱼品质、时间、地点] +[可选排序参数0、1,排序默认为0 对应岛图鉴]" }, querylike: { description: "卡池", examples: "用法:\n卡池+空格+[角色名称、描述]" }, querytianzhu: { description: "天柱", examples: "用法:\n天柱+空格+[天柱名称或者 怪名称 奖励名称]" }, queryproductiontool: { description: "设施", examples: "用法:\n设施+空格+[可升级设施名称、生产物品]" }, getactivity: { description: "活动", examples: "用法:\n直接发送指令 获取活动信息" }, queryanimal: { description: "动物", examples: "用法:\n动物+空格+[名称、产物]" }, querytreasure: { description: "法宝", examples: "用法:\n法宝+空格+[名称]" }, querybird: { description: "鸟", examples: "用法:\n直接发送指令 获取活动信息" } } };
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -60,30 +60,24 @@ async function apply(ctx, cfg) {
|
|
|
60
60
|
6.天柱 电母
|
|
61
61
|
7.设施 篝火`;
|
|
62
62
|
});
|
|
63
|
-
ctx.command("queryCrop <name>").alias("
|
|
63
|
+
ctx.command("queryCrop <name>").alias("作物").action((_, name2) => {
|
|
64
64
|
if (name2 == void 0 || name2.length == 0)
|
|
65
65
|
return "参数不可为空,如:作物+空格+西";
|
|
66
66
|
return getPage(cfg.url + `/queryList?type=0&name=${name2}`, _.session);
|
|
67
67
|
});
|
|
68
|
-
ctx.command("queryInsect <name>").alias("
|
|
68
|
+
ctx.command("queryInsect <name> [isSort]").alias("虫").action((_, name2, isSort) => {
|
|
69
69
|
if (name2 == void 0 || name2.length == 0)
|
|
70
70
|
return "参数不可为空,如:虫+空格+菜粉蝶、查虫+空格+传说";
|
|
71
|
-
return getPage(cfg.url + `/queryList?type=1&name=${name2}`, _.session);
|
|
71
|
+
return getPage(cfg.url + `/queryList?type=1&name=${name2}&isSort=${isSort}`, _.session);
|
|
72
72
|
});
|
|
73
|
-
ctx.command("queryFish <name>").alias("
|
|
73
|
+
ctx.command("queryFish <name> [isSort]").alias("鱼").action((_, name2, isSort) => {
|
|
74
74
|
if (name2 == void 0 || name2.length == 0)
|
|
75
75
|
return "参数不可为空,如:鱼+空格+鲲、查虫+空格+传说";
|
|
76
|
-
|
|
76
|
+
console.log(isSort);
|
|
77
|
+
return getPage(cfg.url + `/queryList?type=2&name=${name2}&isSort=${isSort}`, _.session);
|
|
77
78
|
});
|
|
78
|
-
ctx.command("
|
|
79
|
-
|
|
80
|
-
return "参数不可为空,如:虫岛+空格+六月";
|
|
81
|
-
return getPage(cfg.url + `/queryList?type=3&name=${name2}`, _.session);
|
|
82
|
-
});
|
|
83
|
-
ctx.command("queryFishIsLand <name>").alias("查鱼岛").alias("鱼岛").action((_, name2) => {
|
|
84
|
-
if (name2 == void 0 || name2.length == 0)
|
|
85
|
-
return "参数不可为空,如:鱼岛+空格+六月";
|
|
86
|
-
return getPage(cfg.url + `/queryList?type=4&name=${name2}`, _.session);
|
|
79
|
+
ctx.command("queryBird [name]").alias("鸟").action((_, name2) => {
|
|
80
|
+
return getPage(cfg.url + `/queryBird?name=${name2}`, _.session);
|
|
87
81
|
});
|
|
88
82
|
ctx.command("getActivity [name]").alias("活动").action(async () => {
|
|
89
83
|
try {
|
|
@@ -126,7 +120,7 @@ async function apply(ctx, cfg) {
|
|
|
126
120
|
return "参数不可为空,如:法宝+空格+羽";
|
|
127
121
|
return getPage(cfg.url + `/queryTreasure?name=${name2}`, _.session);
|
|
128
122
|
});
|
|
129
|
-
ctx.command("queryAnimal
|
|
123
|
+
ctx.command("queryAnimal [name]").alias("动物").action((_, name2) => {
|
|
130
124
|
if (name2 == void 0 || name2.length == 0) {
|
|
131
125
|
name2 = "";
|
|
132
126
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# koishi-plugin-xsxn-vue3
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/koishi-plugin-xsxn-vue3)
|
|
4
|
-
- ### 1.0.
|
|
5
|
-
-
|
|
4
|
+
- ### 1.0.20
|
|
5
|
+
- 去除虫岛 鱼岛指令 合并到 鱼 虫 指令
|
|
6
|
+
- ### 1.0.19
|
|
7
|
+
- 新增法宝查询和动物、鸟查询
|
|
6
8
|
- ### 1.0.17
|
|
7
9
|
- 添加活动获取
|
|
8
10
|
- ### 1.0.16
|