fixing when no space

This commit is contained in:
jenz 2024-08-06 15:28:12 +02:00
parent 4b658e90d5
commit 84ff69a52d

View File

@ -718,9 +718,11 @@ class Say(BaseCommand):
os.unlink(TempFile.name)
return 1
#turning the string into a list where get_rubberband just picks the second element to search in
try:
dline = ['', message.split(" ", 1)[1]]
rubberband = get_rubberBand(dline)
except Exception:
rubberband = None
if AudioClip.Play(rubberband = rubberband):
AudioClip.AudioPlayer.AddCallback("Stop", lambda: os.unlink(TempFile.name))
return 0