zhiyu1998 / yunzai-plugin-deer-pipe

✨ 每月🦌管签到 ✨
MIT License
4 stars 1 forks source link

请求适配 QQ-Bot #1

Open Sakura1618 opened 3 weeks ago

Sakura1618 commented 3 weeks ago

请求适配 QQ-Bot

TypeError: Cannot read properties of undefined (reading '1')
    at generateImage (file:///D:/QQbot/TRSS/Yunzai/plugins/yunzai-plugin-deer-pipe/utils/core.js:100:25)
    at DeerPipe.lu (file:///D:/QQbot/TRSS/Yunzai/plugins/yunzai-plugin-deer-pipe/apps/core.js:121:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PluginsLoader.deal (file:///D:/QQbot/TRSS/Yunzai/lib/plugins/loader.js:262:41) {
  [stack]: "TypeError: Cannot read properties of undefined (reading '1')\n" +
    '    at generateImage (file:///D:/QQbot/TRSS/Yunzai/plugins/yunzai-plugin-deer-pipe/utils/core.js:100:25)\n' +
    '    at DeerPipe.lu (file:///D:/QQbot/TRSS/Yunzai/plugins/yunzai-plugin-deer-pipe/apps/core.js:121:27)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at async PluginsLoader.deal (file:///D:/QQbot/TRSS/Yunzai/lib/plugins/loader.js:262:41)',
  [message]: "Cannot read properties of undefined (reading '1')"
}
zhiyu1998 commented 3 weeks ago

有人提出过,但是没看懂,需要一个关键PR,如果你会能测试成功可以尝试下,下面是参考例子:

  1. https://gitee.com/kyrzy0416/yunzai-plugin-deer-pipe/pulls/2
  2. https://gitee.com/kyrzy0416/yunzai-plugin-deer-pipe/pulls/1

关键PR例子:

image