mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-01-05 03:19:01 +08:00
fix: aireply nil
This commit is contained in:
parent
825a5a0d43
commit
e144db9205
@ -211,7 +211,7 @@ func (t *ttsmode) getSoundMode(ctx *zero.Ctx) (tts.TTS, error) {
|
|||||||
}
|
}
|
||||||
mode := ttsModes[m]
|
mode := ttsModes[m]
|
||||||
ins, ok := ttsins[mode]
|
ins, ok := ttsins[mode]
|
||||||
if !ok {
|
if !ok || ins == nil {
|
||||||
switch mode {
|
switch mode {
|
||||||
case "百度":
|
case "百度":
|
||||||
ins = baidutts.NewBaiduTTS(int(i&0x0f00) >> 8)
|
ins = baidutts.NewBaiduTTS(int(i&0x0f00) >> 8)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user