koishi-plugin-xsxn-vue3 1.0.9 → 1.0.11
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 +4 -5
- package/package.json +1 -1
- package/readme.md +2 -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虫+空格+[虫名称、虫品质]" }, queryfish: { description: "鱼", examples: "用法:\n鱼+空格+[鱼名称、鱼品质]" }, queryinsectisland: { description: "虫岛", examples: "用法:\n虫岛+空格+[虫岛名称]" }, queryfishisland: { description: "鱼岛", examples: "用法:\n鱼岛+空格+[鱼岛名称]" }, querylike: { 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设施+空格+[可升级设施名称]" } } };
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -56,7 +56,7 @@ async function apply(ctx, cfg) {
|
|
|
56
56
|
2.作物 西
|
|
57
57
|
3.鱼岛 七月
|
|
58
58
|
4.食谱 传说
|
|
59
|
-
5
|
|
59
|
+
5.卡池 杨戬
|
|
60
60
|
6.天柱 电母
|
|
61
61
|
7.设施 篝火`;
|
|
62
62
|
});
|
|
@@ -88,13 +88,12 @@ async function apply(ctx, cfg) {
|
|
|
88
88
|
ctx.command("queryCookBook [name]").alias("食谱大全").alias("食谱").action((_, name2) => {
|
|
89
89
|
return getPage(cfg.url + `/queryCookBook?name=${name2}`, _.session);
|
|
90
90
|
});
|
|
91
|
-
ctx.command("queryLike [name]").alias("
|
|
91
|
+
ctx.command("queryLike [name]").alias("卡池").action((_, name2) => {
|
|
92
92
|
const specialChars = ["每", "与", ".", "增", "加", "等", "级", "的", "得", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "%", "$", "#", "@", "!", "&", "*", "(", ")", "+", "=", "<", ">", "{", "}", "[", "]", "|", "\\", "/"];
|
|
93
93
|
if (name2 == void 0 || name2.length == 0)
|
|
94
|
-
return "
|
|
94
|
+
return "参数不可为空,如:卡池+空格+贡献";
|
|
95
95
|
if (name2.match(new RegExp(`[${specialChars.join("")}]`)))
|
|
96
96
|
return "兄弟,不要搞这种";
|
|
97
|
-
_.session.send("后续指令更新为·卡池·");
|
|
98
97
|
return getPage(cfg.url + `/queryCompanion?name=${name2}`, _.session);
|
|
99
98
|
});
|
|
100
99
|
ctx.command("queryTianzhu <name>").alias("天柱").action((_, name2) => {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.11
|
|
5
|
+
- 喜好指令修改为-卡池- 可搜索建筑,控制同伴搜索条件
|
|
6
6
|
- ### 1.0.7
|
|
7
7
|
- 新增天柱查询、设施升级查询
|
|
8
8
|
- ### 1.0.5
|