add status message for messages that are not from normal or saturn
mode
This commit is contained in:
parent
e10e364a2a
commit
6aba4a0b5f
|
@ -6,12 +6,15 @@ class Assistant: # You are the assistant
|
||||||
|
|
||||||
def saturn_message(self, message):
|
def saturn_message(self, message):
|
||||||
print("🪐: " + concise_response(message)) # Use concise responses for Saturn mode messages
|
print("🪐: " + concise_response(message)) # Use concise responses for Saturn mode messages
|
||||||
|
|
||||||
|
def status_message(self, message):
|
||||||
|
print("#: " + message)
|
||||||
|
|
||||||
def reply(self, message):
|
def reply(self, message):
|
||||||
if saturn_mode_enabled:
|
if saturn_mode_enabled:
|
||||||
self.saturn_message(message)
|
self.saturn_message(message)
|
||||||
else:
|
else:
|
||||||
self.normal_message(message) # Use display_message() for regular messages
|
self.normal_message(message) # Use normal_message() for regular messages
|
||||||
|
|
||||||
assistant = Assistant()
|
assistant = Assistant()
|
||||||
|
|
||||||
|
@ -19,12 +22,12 @@ def toggle_saturn_mode():
|
||||||
global saturn_mode_enabled
|
global saturn_mode_enabled
|
||||||
saturn_mode_enabled = not saturn_mode_enabled
|
saturn_mode_enabled = not saturn_mode_enabled
|
||||||
mode_status = 'enabled' if saturn_mode_enabled else 'disabled'
|
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():
|
def check_saturn_mode():
|
||||||
global saturn_mode_enabled
|
global saturn_mode_enabled
|
||||||
mode_status = 'enabled' if saturn_mode_enabled else 'disabled'
|
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):
|
def handle_action(action):
|
||||||
prefix = "/me " if saturn_mode_enabled else ""
|
prefix = "/me " if saturn_mode_enabled else ""
|
||||||
|
|
Loading…
Reference in a new issue