File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/Baidu-AIP/golang-sdk v1.1.1
7
- github.com/FloatTech/AnimeAPI v1.7.1-0.20250707153806-5f9e921b8923
7
+ github.com/FloatTech/AnimeAPI v1.7.1-0.20250717123723-d300df538b46
8
8
github.com/FloatTech/floatbox v0.0.0-20250513111443-adba80e84e80
9
9
github.com/FloatTech/gg v1.1.3
10
10
github.com/FloatTech/imgfactory v0.2.2-0.20230413152719-e101cc3606ef
Original file line number Diff line number Diff line change 1
1
github.com/Baidu-AIP/golang-sdk v1.1.1 h1:RQsAmgDSAkiq22I6n7XJ2t3afgzFeqjY46FGhvrx4cw =
2
2
github.com/Baidu-AIP/golang-sdk v1.1.1 /go.mod h1:bXnGw7xPeKt8aF7UCELKrV6UZ/46spItONK1RQBQj1Y =
3
3
github.com/DATA-DOG/go-sqlmock v1.3.3 /go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM =
4
- github.com/FloatTech/AnimeAPI v1.7.1-0.20250707153806-5f9e921b8923 h1:TECdoqZCompmyISzkFkMxSzxGtO3n9VhR+s/r3WwjwQ =
5
- github.com/FloatTech/AnimeAPI v1.7.1-0.20250707153806-5f9e921b8923 /go.mod h1:XXG1eBJf+eeWacQx5azsQKL5Gg7jDYTFyyZGIa/56js =
4
+ github.com/FloatTech/AnimeAPI v1.7.1-0.20250717123723-d300df538b46 h1:X6ZbOWoZJIoHCin+CeU92Q3EwpvglyQ4gc5BZhOtAwo =
5
+ github.com/FloatTech/AnimeAPI v1.7.1-0.20250717123723-d300df538b46 /go.mod h1:XXG1eBJf+eeWacQx5azsQKL5Gg7jDYTFyyZGIa/56js =
6
6
github.com/FloatTech/floatbox v0.0.0-20250513111443-adba80e84e80 h1:lFD1pd8NkYCrw0QpTX/T5pJ67I7AL5eGxQ4v0r9f81Q =
7
7
github.com/FloatTech/floatbox v0.0.0-20250513111443-adba80e84e80 /go.mod h1:IWoFFqu+0FeaHHQdddyiTRL5z7gJME6qHC96qh0R2sc =
8
8
github.com/FloatTech/gg v1.1.3 h1:+GlL02lTKsxJQr4WCuNwVxC1/eBZrCvypCIBtxuOFb4 =
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ func init() {
142
142
continue
143
143
}
144
144
logrus .Infoln ("[aichat] 回复内容:" , t )
145
- recCfg := airecord .RecCfg
145
+ recCfg := airecord .GetConfig ()
146
146
record := ""
147
147
if ! cfg .NoRecord {
148
148
record = ctx .GetAIRecord (recCfg .ModelID , recCfg .Customgid , t )
Original file line number Diff line number Diff line change @@ -115,13 +115,12 @@ func init() {
115
115
})
116
116
en .OnFullMatch ("查看AI语音配置" , zero .OnlyPrivate , zero .SuperUserPermission ).SetBlock (true ).
117
117
Handle (func (ctx * zero.Ctx ) {
118
- recCfg := airecord .RecCfg
119
- ctx .SendChain (message .Text (airecord .PrintRecordConfig (recCfg )))
118
+ ctx .SendChain (message .Text (airecord .PrintRecordConfig ()))
120
119
})
121
120
en .OnPrefix ("发送AI语音" , zero .UserOrGrpAdmin ).SetBlock (true ).
122
121
Handle (func (ctx * zero.Ctx ) {
123
122
u := strings .TrimSpace (ctx .State ["args" ].(string ))
124
- recCfg := airecord .RecCfg
123
+ recCfg := airecord .GetConfig ()
125
124
record := ctx .GetAIRecord (recCfg .ModelID , recCfg .Customgid , u )
126
125
if record == "" {
127
126
id := ctx .SendGroupAIRecord (recCfg .ModelID , ctx .Event .GroupID , u )
You can’t perform that action at this time.
0 commit comments