1
0
forked from lxh/go-wxhelper

Merge pull request '🎨 逻辑优化' (#17) from hotfix into main

Reviewed-on: lxh/go-wxhelper#17
This commit is contained in:
李寻欢 2024-01-25 11:46:30 +08:00
commit 8ff18c3626

View File

@ -123,6 +123,12 @@ func AI(m *plugin.MessageContext) {
return
}
// 返回消息为空
if resp.Choices[0].Message.Content == "" {
utils.SendMessage(m.FromUser, m.GroupUser, "AI似乎抽风了没有告诉我你需要的回答~", 0)
return
}
// 保存一下AI 返回的消息,消息 Id 使用传入 Id 的负数
var replyMessage entity.Message
replyMessage.MsgId = -m.MsgId