Skip to content

Commit 7e8539c

Browse files
committed
🎨 尽量发送声音
1 parent c8c3cc5 commit 7e8539c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugin/airecord/record.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ func init() {
116116
recCfg := airecord.GetRecordConfig()
117117
record := ctx.GetAIRecord(recCfg.ModelID, recCfg.Customgid, u)
118118
if record == "" {
119-
ctx.SendChain(message.Text("ERROR: get record err: empty record"))
120-
return
119+
id := ctx.SendGroupAIRecord(recCfg.ModelID, ctx.Event.GroupID, u)
120+
if id == "" {
121+
ctx.SendChain(message.Text("ERROR: get record err: empty record"))
122+
return
123+
}
121124
}
122125
ctx.SendChain(message.Record(record))
123126
})

0 commit comments

Comments
 (0)