koishi-plugin-xsxn-vue3 1.0.18 → 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 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: "活动" }, queryanimal: { description: "动物" }, querytreasure: { 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("查作物").alias("作物").action((_, name2) => {
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("查虫").alias("虫").action((_, name2) => {
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("查鱼").alias("鱼").action((_, name2) => {
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("queryInsectIsLand <name>").alias("查虫岛").alias("虫岛").action((_, name2) => {
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("查鱼岛").alias("鱼岛").action((_, name2) => {
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);
@@ -126,7 +129,7 @@ async function apply(ctx, cfg) {
126
129
  return "参数不可为空,如:法宝+空格+羽";
127
130
  return getPage(cfg.url + `/queryTreasure?name=${name2}`, _.session);
128
131
  });
129
- ctx.command("queryAnimal <name>").alias("动物").action((_, name2) => {
132
+ ctx.command("queryAnimal [name]").alias("动物").action((_, name2) => {
130
133
  if (name2 == void 0 || name2.length == 0) {
131
134
  name2 = "";
132
135
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-xsxn-vue3",
3
3
  "description": "查询工具与后端分离,无服务端,自用版本",
4
- "version": "1.0.18",
4
+ "version": "1.0.19",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -1,8 +1,8 @@
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.18
5
- - 新增法宝查询和动物查询
4
+ - ### 1.0.19
5
+ - 新增法宝查询和动物、鸟查询
6
6
  - ### 1.0.17
7
7
  - 添加活动获取
8
8
  - ### 1.0.16