alemonjs-aichat 1.0.34 → 1.0.35

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.
@@ -1,9 +1,9 @@
1
1
  var mw = onMiddleware(onSelects(["message.create", "private.message.create"]), async (event, next) => {
2
2
  if (event.Xianyu) {
3
- return true; // 继续执行后续的处理函数
3
+ return next(); // 普通聊天交给后续路由/文件处理,跳过命令子路由
4
4
  }
5
5
  else {
6
- return next(); // 跳过所有指令,继续执行后续的处理函数
6
+ return true; // 命令消息继续执行当前命令子路由
7
7
  }
8
8
  });
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs-aichat",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "alemonjs-aichat",
5
5
  "author": "suancaixianyu",
6
6
  "license": "MIT",