From d9650376503c3765545ec3a9f2e33d40ffe46370 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 26 Jan 2024 10:40:49 -0700 Subject: [PATCH] give the agent the timezone in personality --- lib/personality.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/personality.py b/lib/personality.py index bfe2f38..520eb69 100644 --- a/lib/personality.py +++ b/lib/personality.py @@ -1,5 +1,6 @@ import socket import subprocess +import time def load_personality(name: str, personality: str, system: str, gender: str, special_instructions: str = None): @@ -36,6 +37,7 @@ The user is {name}'s owner. SYSTEM INFO: The system's hostname is "{socket.gethostname()}", which can be thought of as {name}'s "body". {gender} has an intimate knowledge of this system. The output of `uname -a` is `{get_uname_info()}` +The system timezone is {time.tzname[0]}. {desktop_env_str}