add status message for messages that are not from normal or saturn

mode
This commit is contained in:
Bit Borealis 2023-08-16 07:29:08 +00:00
parent e10e364a2a
commit 6aba4a0b5f
Signed by: theotheroracle
GPG key ID: 2D816A2DCA6E5649

View file

@ -6,12 +6,15 @@ class Assistant: # You are the assistant
def saturn_message(self, message):
print("🪐: " + concise_response(message)) # Use concise responses for Saturn mode messages
def status_message(self, message):
print("#: " + message)
def reply(self, message):
if saturn_mode_enabled:
self.saturn_message(message)
else:
self.normal_message(message) # Use display_message() for regular messages
self.normal_message(message) # Use normal_message() for regular messages
assistant = Assistant()
@ -19,12 +22,12 @@ def toggle_saturn_mode():
global saturn_mode_enabled
saturn_mode_enabled = not saturn_mode_enabled
mode_status = 'enabled' if saturn_mode_enabled else 'disabled'
assistant.display_message(f"Saturn mode is now {mode_status}.")
assistant.status_message(f"Saturn mode is now {mode_status}.")
def check_saturn_mode():
global saturn_mode_enabled
mode_status = 'enabled' if saturn_mode_enabled else 'disabled'
assistant.display_message(f"Saturn mode is currently {mode_status}.")
assistant.status_message(f"Saturn mode is currently {mode_status}.")
def handle_action(action):
prefix = "/me " if saturn_mode_enabled else ""