mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-25 03:03:48 +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]
|
||||
ins, ok := ttsins[mode]
|
||||
if !ok {
|
||||
if !ok || ins == nil {
|
||||
switch mode {
|
||||
case "百度":
|
||||
ins = baidutts.NewBaiduTTS(int(i&0x0f00) >> 8)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user