简化设置原神vits key流程

This commit is contained in:
源文雨
2022-12-14 21:38:55 +08:00
parent e9e0498b34
commit f56929c852
3 changed files with 9 additions and 17 deletions

View File

@@ -57,11 +57,7 @@ func init() {
var key struct {
APIKey string
}
gid := ctx.Event.GroupID
if gid == 0 {
gid = -ctx.Event.UserID
}
err := c.Manager.GetExtra(gid, &key)
err := c.Manager.GetExtra(-1, &key)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return