add comments to clarify for the assitant
This commit is contained in:
parent
6aba4a0b5f
commit
26693f819c
16
saturn.py
16
saturn.py
|
@ -1,20 +1,22 @@
|
||||||
saturn_mode_enabled = False
|
saturn_mode_enabled = False
|
||||||
|
|
||||||
class Assistant: # You are the assistant
|
class Assistant:
|
||||||
def normal_message(self, message):
|
# This code defines how the assistant should respond text
|
||||||
print("ꕤ: " + response(message))
|
def display_message(self, message):
|
||||||
|
print("ꕤ: " + response(message)) # responds normally
|
||||||
|
|
||||||
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)) # responds concisely
|
||||||
|
|
||||||
def status_message(self, message):
|
def status_message(self, message):
|
||||||
print("#: " + message)
|
print("#: " + message) # prints the message directly and does not
|
||||||
|
# generate a response
|
||||||
|
|
||||||
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 normal_message() for regular messages
|
self.display_message(message) # Use display_message() for regular messages
|
||||||
|
|
||||||
assistant = Assistant()
|
assistant = Assistant()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue