koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.53k stars 246 forks source link

Bug: adapter-satori的message.create出现多次调用 #1445

Open wyapx opened 3 months ago

wyapx commented 3 months ago

Describe the bug

使用adapter-satori适配器发送消息时,message.create接口会被调用两次

第二次调用的content参数为空(空消息),且仅在第一次调用完成后触发

Steps to reproduce

配置好adapter-satori插件,让机器人随意发送一条消息即可触发

Expected behavior

排除错误的调用

Screenshots

No response

Versions

Additional context

No response

DGCK81LNN commented 1 month ago

怀疑可能与 session.execute() 二参不为 true 时现在返回空数组而非空字符串 (d69e9343e2ac2ab49ed12bc69b9fce9d83107674) 有关。