Skip to content

Commit fef0ac6

Browse files
committed
fix genshin tts
1 parent e144db9 commit fef0ac6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/Baidu-AIP/golang-sdk v1.1.1
77
github.com/Coloured-glaze/gg v1.3.4
8-
github.com/FloatTech/AnimeAPI v1.6.1-0.20221212075306-4d0d5d6a85f7
8+
github.com/FloatTech/AnimeAPI v1.6.1-0.20221214084932-8c0223841d43
99
github.com/FloatTech/floatbox v0.0.0-20221210051813-4bd44af40c60
1010
github.com/FloatTech/sqlite v1.5.7
1111
github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
44
github.com/Coloured-glaze/gg v1.3.4 h1:l31zIF/HaVwkzjrj+A56RGQoSKyKuR1IWtIrqXGFStI=
55
github.com/Coloured-glaze/gg v1.3.4/go.mod h1:Ih5NLNNDHOy3RJbB0EPqGTreIzq/H02TGThIagh8HJg=
66
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
7-
github.com/FloatTech/AnimeAPI v1.6.1-0.20221212075306-4d0d5d6a85f7 h1:79u3Jqv9KGSnwYFAWHx9Jw83YcDjZTAZejzbcsdIrjQ=
8-
github.com/FloatTech/AnimeAPI v1.6.1-0.20221212075306-4d0d5d6a85f7/go.mod h1:Ri2Qa0552braxZVsk+axbBHL6UIWkGqQRETiIT9QTXI=
7+
github.com/FloatTech/AnimeAPI v1.6.1-0.20221214084932-8c0223841d43 h1:a0Hl8o6sYaepeuFZ3rboCM3Wh+sikKhsFm6pFmtyom8=
8+
github.com/FloatTech/AnimeAPI v1.6.1-0.20221214084932-8c0223841d43/go.mod h1:Ri2Qa0552braxZVsk+axbBHL6UIWkGqQRETiIT9QTXI=
99
github.com/FloatTech/floatbox v0.0.0-20221210051813-4bd44af40c60 h1:S4KfcdK6LdOa0+TTyacHYOZ8aWkR6YbvlnI6GWe66Jc=
1010
github.com/FloatTech/floatbox v0.0.0-20221210051813-4bd44af40c60/go.mod h1:/k2zxRJtAJ17w9fSpc7xf2QjPDTUBmqhBsOGyHVyX0U=
1111
github.com/FloatTech/rendercard v0.0.2-0.20221128165614-a41216d2422e h1:7bF01RHsYS99Zp+OWfob1W/Cymho6fcggoRSpiuiYB8=

plugin/moegoe/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
zero "github.com/wdvxdr1123/ZeroBot"
99
"github.com/wdvxdr1123/ZeroBot/message"
1010

11+
"github.com/FloatTech/AnimeAPI/tts/genshin"
1112
ctrl "github.com/FloatTech/zbpctrl"
1213
"github.com/FloatTech/zbputils/control"
1314
"github.com/FloatTech/zbputils/ctxext"
@@ -16,7 +17,6 @@ import (
1617
const (
1718
jpapi = "https://moegoe.azurewebsites.net/api/speak?text=%s&id=%d"
1819
krapi = "https://moegoe.azurewebsites.net/api/speakkr?text=%s&id=%d"
19-
cnapi = "https://genshin.azurewebsites.net/api/speak?format=mp3&text=%s&id=%d&code=%s"
2020
)
2121

2222
var speakers = map[string]uint{
@@ -66,6 +66,6 @@ func init() {
6666
ctx.SendChain(message.Text("ERROR: ", err))
6767
return
6868
}
69-
ctx.SendChain(message.Record(fmt.Sprintf(cnapi, url.QueryEscape(text), id, url.QueryEscape(key.APIKey))))
69+
ctx.SendChain(message.Record(fmt.Sprintf(genshin.CNAPI, id, url.QueryEscape(text), url.QueryEscape(key.APIKey))))
7070
})
7171
}

0 commit comments

Comments
 (0)