added processable welcome message

This commit is contained in:
Saifeddine ALOUI 2024-05-11 19:08:34 +02:00
parent 069278f106
commit 6d1425742b
3 changed files with 6 additions and 2 deletions

View File

@ -53,6 +53,10 @@ def add_events(sio:socketio):
lollmsElfServer.session.get_client(client_id).discussion = lollmsElfServer.db.load_last_discussion()
if lollmsElfServer.personality.welcome_message!="":
if lollmsElfServer.personality.processor:
welcome_message = lollmsElfServer.personality.processor.get_welcome()
if welcome_message is not None:
lollmsElfServer.personality.welcome_message = welcome_message
if lollmsElfServer.personality.welcome_audio_path.exists():
for voice in lollmsElfServer.personality.welcome_audio_path.iterdir():
if voice.suffix.lower() in [".wav",".mp3"]:

@ -1 +1 @@
Subproject commit 03072a36cef484a6ad0616b49b4fcf24e0b433f1
Subproject commit c319cfe00cc9bfe725bbc662ffefa92af6118521

@ -1 +1 @@
Subproject commit f37030eab7775d12bcbe9e8413662d86ef987469
Subproject commit aae43d98e62a3090eedd0893e4f22336225e93bd