koishi-plugin-xsxn-vue3 1.0.17 → 1.0.19
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 +20 -6
- package/package.json +1 -1
- package/readme.md +2 -0
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虫+空格+[虫名称、虫品质]" }, queryfish: { description: "鱼", examples: "用法:\n鱼+空格+[鱼名称、鱼品质]" }, queryinsectisland: { description: "虫岛", examples: "用法:\n虫岛+空格+[虫岛名称]" }, queryfishisland: { description: "鱼岛", examples: "用法:\n鱼岛+空格+[鱼岛名称]" }, querylike: { description: "卡池", examples: "用法:\n卡池+空格+[可为空、角色名称]" }, querytianzhu: { description: "天柱", examples: "用法:\n天柱+空格+[天柱名称或者 怪名称 奖励名称]" }, queryproductiontool: { description: "设施", examples: "用法:\n设施+空格+[可升级设施名称]" }, getactivity: { description: "活动",
|
|
26
|
+
module2.exports = { commands: { querycrop: { description: "作物", examples: "作物 <作物名称>" }, querycookbook: { description: "食谱", examples: "用法:\n食谱+空格+[可为空、食谱名称、食材]" }, querydispatch: { description: "派遣" }, queryinsect: { description: "虫", examples: "用法:\n虫+空格+[虫名称、虫品质]" }, queryfish: { description: "鱼", examples: "用法:\n鱼+空格+[鱼名称、鱼品质]" }, queryinsectisland: { description: "虫岛", examples: "用法:\n虫岛+空格+[虫岛名称]" }, queryfishisland: { description: "鱼岛", examples: "用法:\n鱼岛+空格+[鱼岛名称]" }, querylike: { description: "卡池", examples: "用法:\n卡池+空格+[可为空、角色名称]" }, querytianzhu: { description: "天柱", examples: "用法:\n天柱+空格+[天柱名称或者 怪名称 奖励名称]" }, queryproductiontool: { description: "设施", examples: "用法:\n设施+空格+[可升级设施名称]" }, getactivity: { description: "活动" }, queryanimal: { description: "动物" }, querytreasure: { description: "法宝" }, querybird: { description: "鸟" } } };
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -60,27 +60,30 @@ 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>").alias("虫").action((_, name2) => {
|
|
69
69
|
if (name2 == void 0 || name2.length == 0)
|
|
70
70
|
return "参数不可为空,如:虫+空格+菜粉蝶、查虫+空格+传说";
|
|
71
71
|
return getPage(cfg.url + `/queryList?type=1&name=${name2}`, _.session);
|
|
72
72
|
});
|
|
73
|
-
ctx.command("queryFish <name>").alias("
|
|
73
|
+
ctx.command("queryFish <name>").alias("鱼").action((_, name2) => {
|
|
74
74
|
if (name2 == void 0 || name2.length == 0)
|
|
75
75
|
return "参数不可为空,如:鱼+空格+鲲、查虫+空格+传说";
|
|
76
76
|
return getPage(cfg.url + `/queryList?type=2&name=${name2}`, _.session);
|
|
77
77
|
});
|
|
78
|
-
ctx.command("
|
|
78
|
+
ctx.command("queryBird [name]").alias("鸟").action((_, name2) => {
|
|
79
|
+
return getPage(cfg.url + `/queryBird?name=${name2}`, _.session);
|
|
80
|
+
});
|
|
81
|
+
ctx.command("queryInsectIsLand <name>").alias("虫岛").action((_, name2) => {
|
|
79
82
|
if (name2 == void 0 || name2.length == 0)
|
|
80
83
|
return "参数不可为空,如:虫岛+空格+六月";
|
|
81
84
|
return getPage(cfg.url + `/queryList?type=3&name=${name2}`, _.session);
|
|
82
85
|
});
|
|
83
|
-
ctx.command("queryFishIsLand <name>").alias("
|
|
86
|
+
ctx.command("queryFishIsLand <name>").alias("鱼岛").action((_, name2) => {
|
|
84
87
|
if (name2 == void 0 || name2.length == 0)
|
|
85
88
|
return "参数不可为空,如:鱼岛+空格+六月";
|
|
86
89
|
return getPage(cfg.url + `/queryList?type=4&name=${name2}`, _.session);
|
|
@@ -121,6 +124,17 @@ async function apply(ctx, cfg) {
|
|
|
121
124
|
return "参数不可为空,如:设施+空格+篝火";
|
|
122
125
|
return getPage(cfg.url + `/queryProductionTool?name=${name2}`, _.session);
|
|
123
126
|
});
|
|
127
|
+
ctx.command("queryTreasure <name>").alias("法宝").action((_, name2) => {
|
|
128
|
+
if (name2 == void 0 || name2.length == 0)
|
|
129
|
+
return "参数不可为空,如:法宝+空格+羽";
|
|
130
|
+
return getPage(cfg.url + `/queryTreasure?name=${name2}`, _.session);
|
|
131
|
+
});
|
|
132
|
+
ctx.command("queryAnimal [name]").alias("动物").action((_, name2) => {
|
|
133
|
+
if (name2 == void 0 || name2.length == 0) {
|
|
134
|
+
name2 = "";
|
|
135
|
+
}
|
|
136
|
+
return getPage(cfg.url + `/queryAnimal?name=${name2}`, _.session);
|
|
137
|
+
});
|
|
124
138
|
async function getPage(url, session) {
|
|
125
139
|
let str = `数据响应中,请稍等...
|
|
126
140
|
`;
|
package/package.json
CHANGED