chore: update deps

This commit is contained in:
源文雨
2025-09-22 22:46:18 +08:00
parent 49983ab451
commit f09f15937c
3 changed files with 13 additions and 10 deletions

View File

@@ -152,13 +152,16 @@ func init() {
role = goba.PermRoleOwner
}
}
req, err := chat.AgentOf(ctx.Event.SelfID).GetAction(x, mod, gid, role, false)
reqs, err := chat.AgentOf(ctx.Event.SelfID).GetAction(x, mod, gid, role, false)
if err != nil {
logrus.Warnln("[aichat] agent err:", err, &req)
logrus.Warnln("[aichat] agent err:", err, reqs)
return
}
logrus.Infoln("[aichat] agent do:", &req)
ctx.CallAction(req.Action, req.Params)
logrus.Infoln("[aichat] agent do:", reqs)
for _, req := range reqs {
ctx.CallAction(req.Action, req.Params)
process.SleepAbout1sTo2s()
}
return
}