wechaty / wechaty-weixin-openai

Wechaty plugin for integrate your bot with weixin openai-sdk
https://paka.dev/npm/wechaty-weixin-openai
Apache License 2.0
13 stars 5 forks source link

plugin.ts WARN Message from() is deprecated, use talker() instead #5

Open HolmanHuang opened 3 years ago

HolmanHuang commented 3 years ago

` 18:43:36 WARN Message from() is deprecated, use talker() instead. Call stack: Error: at WechatifiedMessage.from (/home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty/src/user/message.ts:281:7) at Object. (/home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/src/plugin.ts:96:26) at Generator.next () at /home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/dist/src/plugin.js:8:71 at new Promise () at __awaiter (/home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/dist/src/plugin.js:4:12) at isConfigMessage (/home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/src/plugin.ts:95:72) at /home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/src/plugin.ts:135:18 at Generator.next () at fulfilled (/home/king/projects/wechaty/wechaty-getting-started/node_modules/wechaty-weixin-openai/dist/src/plugin.js:5:58) at processTicksAndRejections (internal/process/task_queues.js:95:5) 18:43:37 INFO WechatyPluginContrib EventLogger ready: 18:43:47 INFO WechatyPluginContrib EventLogger heartbeat: heartbeat@browserbridge ding 18:44:02 INFO WechatyPluginContrib EventLogger heartbeat: heartbeat@browserbridge ding

`

HolmanHuang commented 3 years ago

change from from() to talker() will be fine.