zhinjs / zhin

a chat bot framework for Node.js developers, compatible with qq、icqq、wechat、discord、onebot(11/12)、dingtalk and more
https://docs.zhin.dev
MIT License
115 stars 13 forks source link

注册adapter失败 #142

Open xiaoshuye147 opened 2 weeks ago

xiaoshuye147 commented 2 weeks ago

Envirment: Termux. 按照教程失败,修改@zhinjs/adapter-wechat为@zhinjs/wechat后 npm install @zhinjs/wechat成功, 但adapter.add @zhinjs/wechat失败,错误日志: ~/zhin-app $ npx zhin [2024-08-26T11:20:27.710] [INFO] [zhin] - plugin:指令解析器 loaded。 [2024-08-26T11:20:27.713] [INFO] [zhin] - plugin:echo loaded。 [2024-08-26T11:20:27.719] [INFO] [zhin] - plugin:hmr loaded。 [2024-08-26T11:20:27.720] [INFO] [zhin] - plugin:zhin管理 loaded。 [2024-08-26T11:20:27.721] [INFO] [zhin] - plugin:setup loaded。 [2024-08-26T11:20:27.847] [WARN] [zhin] - load adapter "@zhinjs/wechat" failed TypeError: configs is not iterable at Adapter.initBot (/data/data/com.termux/files/home/zhin-app/node_modules/@zhinjs/wechat/lib/index.js:21:26) at Adapter.emit (node:events:520:28) at Adapter.mount (/data/data/com.termux/files/home/zhin-app/node_modules/@zhinjs/core/lib/adapter.js:74:14) at Proxy.loadAdapter (/data/data/com.termux/files/home/zhin-app/node_modules/@zhinjs/core/lib/app.js:320:25) at Proxy.initAdapter (/data/data/com.termux/files/home/zhin-app/node_modules/@zhinjs/core/lib/app.js:102:18) at Proxy.start (/data/data/com.termux/files/home/zhin-app/node_modules/@zhinjs/core/lib/app.js:298:14) at /data/data/com.termux/files/home/zhin-app/node_modules/zhin/lib/start.js:28:9 at Object. (/data/data/com.termux/files/home/zhin-app/node_modules/zhin/lib/start.js:29:3) at Module._compile (node:internal/modules/cjs/loader:1504:14) at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)

xiaoshuye147 commented 2 weeks ago

but the archivement is arm64 not x86-64.