koishi-plugin-oni-wiki-qq 0.4.0 → 0.4.2

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Context, Schema } from "koishi";
2
2
  export declare const name = "oni-wiki-qq";
3
- export declare const usage = "\n - 0.4.0 \u79FB\u9664MWN.\u5C06\u67E5\u8BE2\u5904\u7406\u6539\u81F3\u67E5\u8BE2\u6570\u636E\u5E93\n - 0.3.4 \u6DFB\u52A0\u706B\u7BAD\u8BA1\u7B97\u5668\u5730\u5740\n - 0.3.3 \u6240\u6709\u7F51\u5740\u5904\u7406\n - 0.3.0 \u79FB\u9664\u8017\u5185\u5B58\u7684\u622A\u56FE\u90E8\u5206,\u4F7F\u7528\u955C\u50CF\u7AD9\u70B9\u7F51\u9875\n - 0.2.0 \u5C1D\u8BD5\u6DFB\u52A0 MWN \u5E93\n";
3
+ export declare const usage = "\n - 0.4.2 \u4FEE\u6539/ \u7684\u4F7F\u7528\u65B9\u5F0F,\u6539\u4E3A >\n - 0.4.1 \u589E\u52A0/\u7684\u5904\u7406\n - 0.4.0 \u79FB\u9664MWN.\u5C06\u67E5\u8BE2\u5904\u7406\u6539\u81F3\u67E5\u8BE2\u6570\u636E\u5E93\n - 0.3.0 \u79FB\u9664\u8017\u5185\u5B58\u7684\u622A\u56FE\u90E8\u5206,\u4F7F\u7528\u955C\u50CF\u7AD9\u70B9\u7F51\u9875\n - 0.2.0 \u5C1D\u8BD5\u6DFB\u52A0 MWN \u5E93\n";
4
4
  export declare const inject: string[];
5
5
  declare module "koishi" {
6
6
  interface Tables {
package/lib/index.js CHANGED
@@ -30,9 +30,9 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_koishi = require("koishi");
31
31
  var name = "oni-wiki-qq";
32
32
  var usage = `
33
+ - 0.4.2 修改/ 的使用方式,改为 >
34
+ - 0.4.1 增加/的处理
33
35
  - 0.4.0 移除MWN.将查询处理改至查询数据库
34
- - 0.3.4 添加火箭计算器地址
35
- - 0.3.3 所有网址处理
36
36
  - 0.3.0 移除耗内存的截图部分,使用镜像站点网页
37
37
  - 0.2.0 尝试添加 MWN 库
38
38
  `;
@@ -51,7 +51,7 @@ function apply(ctx, config) {
51
51
  ctx.command("x <itemName>", "查询缺氧中文wiki").alias("/查wiki").action(async ({ session }, itemName = "电解器") => {
52
52
  session.send(`您查询的「${itemName}」进行中,请稍等...`);
53
53
  const res = await ctx.database.get("wikipages", {
54
- title: [`${itemName}`]
54
+ title: [`${itemName.replace("/", ">")}`]
55
55
  });
56
56
  logger.info(res);
57
57
  if (res.length == 0) {
@@ -76,7 +76,7 @@ function apply(ctx, config) {
76
76
  res["query"]["allpages"].forEach(async (element) => {
77
77
  console.log(element.title);
78
78
  await ctx.database.upsert("wikipages", (row) => [
79
- { id: element.pageid, title: element.title.replace("/", "-") }
79
+ { id: element.pageid, title: element.title.replace("/", ">") }
80
80
  ]);
81
81
  });
82
82
  return `更新已完成,已尝试写入数据库}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-oni-wiki-qq",
3
3
  "description": "缺氧wiki查询,自用",
4
- "version": "0.4.0",
4
+ "version": "0.4.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [