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 CHANGED
@@ -60,20 +60,13 @@ async function apply(ctx, cfg) {
60
60
  6.天柱 电母
61
61
  7.设施 篝火`;
62
62
  });
63
- ctx.command("queryCrop <name>").alias("作物").action((_, name2) => {
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 <name> [isSort]").alias("虫").action((_, name2, isSort) => {
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 <name> [isSort]").alias("鱼").action((_, name2, isSort) => {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-xsxn-vue3",
3
3
  "description": "查询工具与后端分离,无服务端,自用版本",
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # koishi-plugin-xsxn-vue3
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/koishi-plugin-xsxn-vue3?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-xsxn-vue3)
4
- - ### 1.0.20
4
+ - ### 1.0.22
5
5
  - 去除虫岛 鱼岛指令 合并到 鱼 虫 指令
6
6
  - ### 1.0.19
7
7
  - 新增法宝查询和动物、鸟查询