koishi-plugin-sy-bot 0.0.10 → 0.0.13

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -517,7 +517,7 @@ function registerResource(ctx, config) {
517
517
  const resources = await ctx.database.get("resources");
518
518
  if (!index) {
519
519
  const top = "-------- 资源合集 \n----------------\n";
520
- return top + resources.map((res) => `${res.id} 《${res.title}》`).join(" \n");
520
+ return top + resources.map((res, idx) => `${idx + 1} 《${res.title}》`).join(" \n");
521
521
  } else {
522
522
  return resources[index - 1] ? resources[index - 1].content : "没有这个哦,喵";
523
523
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-sy-bot",
3
3
  "description": "考研群答疑Bot,接入Gemini。",
4
- "version": "0.0.10",
4
+ "version": "0.0.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -11,8 +11,8 @@
11
11
  "license": "MIT",
12
12
  "scripts": {
13
13
  "dev": "cd ../.. && npm run dev",
14
- "build": "cd ../.. && npm run build",
15
- "v": "cd ../.. && npm run build && npm run bump",
14
+ "build": "echo '直接更新版本会自动编译!'",
15
+ "v": "cd ../.. && echo '构建中...' && npm run build && npm run bump",
16
16
  "pub": "cd ../.. && npm run pub",
17
17
  "login": "cd ../.. && npm login"
18
18
  },