1
0
Fork 0

🎨 逻辑优化

This commit is contained in:
李寻欢 2024-01-25 11:46:03 +08:00
parent eb2e292e8e
commit 6acb3b79ec
1 changed files with 6 additions and 0 deletions

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