This commit is contained in:
Saifeddine ALOUI 2024-05-11 23:33:26 +02:00
parent f9351c898e
commit db3ad34db2
3 changed files with 12 additions and 6 deletions

View File

@ -44,7 +44,8 @@ def add_events(sio:socketio):
ASCIIColors.yellow("New descussion requested")
client_id = sid
title = data["title"]
lollmsElfServer.session.get_client(client_id).discussion = lollmsElfServer.db.create_discussion(title)
client = lollmsElfServer.session.get_client(client_id)
client.discussion = lollmsElfServer.db.create_discussion(title)
# Get the current timestamp
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
@ -54,9 +55,14 @@ def add_events(sio:socketio):
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
lollmsElfServer.ShowBlockingMessage("Building custom welcome message.\nPlease standby.")
try:
welcome_message = lollmsElfServer.personality.processor.get_welcome(client)
if welcome_message is not None:
lollmsElfServer.personality.welcome_message = welcome_message
except Exception as ex:
trace_exception(ex)
lollmsElfServer.HideBlockingMessage()
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 c319cfe00cc9bfe725bbc662ffefa92af6118521
Subproject commit 836df0c16f69f5075d2fe6ad527542f59e081939

@ -1 +1 @@
Subproject commit 1eb12731f20e83d10099b1bb72089d6e395285fc
Subproject commit 4e63e374fa66d20f6ad9ba2c50c3ded797e32b37