Fix handle empty text input

This commit is contained in:
kwaroran
2024-01-15 12:41:17 +09:00
parent 17e21d7aa6
commit ab5f0c075d

View File

@@ -18,6 +18,10 @@ export async function sayTTS(character:character,text:string) {
}
character = v
}
if(!text){
return
}
let db = get(DataBase)
text = text.replace(/\*/g,'')