bot框架:TRSS-Yunzai+NTQQ
用的red分支
在使用椰奶插件的Pixiv功能时
报错如下:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.openSync (node:fs:593:10)
at Object.readFileSync (node:fs:469:35)
at getFileInfo (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:64:21)
at upload (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:111:28)
at uploadImg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:29:24)
at makeNodeMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:674:39)
at sendNodeMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:621:31)
at makeSendMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:113:34)
at QQRedBot.sendGroupMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/bot.js:219:79)
at Object.sendMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/bot.js:60:34)
bot框架:TRSS-Yunzai+NTQQ 用的red分支 在使用椰奶插件的Pixiv功能时 报错如下: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.openSync (node:fs:593:10) at Object.readFileSync (node:fs:469:35) at getFileInfo (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:64:21) at upload (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:111:28) at uploadImg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/tool.js:29:24) at makeNodeMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:674:39) at sendNodeMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:621:31) at makeSendMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/message.js:113:34) at QQRedBot.sendGroupMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/bot.js:219:79) at Object.sendMsg (file:///home/ubuntu/Yunzai/plugins/ws-plugin/model/red/bot.js:60:34)