fix mod dub throw undefined reference (#1209)

This commit is contained in:
Hoan Luu Huu
2025-05-28 20:58:33 +07:00
committed by GitHub
parent 3475f39b1d
commit 4990b1fb68

View File

@@ -45,7 +45,8 @@ class TtsTask extends Task {
}
const fullText = Array.isArray(this.text) ? this.text.join(' ') : this.text;
if (fullText.length > 0) {
// in case dub verb, text might not be set.
if (fullText?.length > 0) {
cs.emit('botSaid', fullText);
}
}