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.
- package/lib/index.js +3 -1
- 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
|
-
|
|
374
|
+
if (!config.scriptMode) {
|
|
375
|
+
userBranch[session.userId].length = 0;
|
|
376
|
+
}
|
|
375
377
|
await session.send(!config.scriptMode ? "长时间未操作,退出自助服务" : "长时间未操作,退出剧本");
|
|
376
378
|
break;
|
|
377
379
|
}
|