koishi-plugin-smmcat-selfhelp 0.2.0 → 0.2.1

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 +3 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -371,7 +371,9 @@ ${goalItem.crumbs}
371
371
  }
372
372
  const res = await session.prompt(config.overtime);
373
373
  if (res === void 0) {
374
- userBranch[session.userId].length = 0;
374
+ if (!config.scriptMode) {
375
+ userBranch[session.userId].length = 0;
376
+ }
375
377
  await session.send(!config.scriptMode ? "长时间未操作,退出自助服务" : "长时间未操作,退出剧本");
376
378
  break;
377
379
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-selfhelp",
3
3
  "description": "用户自助服务系统",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [