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.
- package/lib/response/mw.js +2 -2
- package/package.json +1 -1
package/lib/response/mw.js
CHANGED
|
@@ -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
|
|
3
|
+
return next(); // 普通聊天交给后续路由/文件处理,跳过命令子路由
|
|
4
4
|
}
|
|
5
5
|
else {
|
|
6
|
-
return
|
|
6
|
+
return true; // 命令消息继续执行当前命令子路由
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
9
|
|