Update main.py

This commit is contained in:
maglore9900 2024-10-03 17:22:38 -04:00
parent 7cd7a79e7d
commit 5dc3ff468b

View File

@ -30,7 +30,7 @@ while True:
text = graph.spk.listen() text = graph.spk.listen()
# if text: # if text:
# print(f"User: {text}") # print(f"User: {text}")
if text and "hey" in text.lower() and "max" in text.lower() or text and "hey" in text.lower() and "mac" in text.lower()or text and "amax" in text.lower(): if text and "hey" in text.lower() and env("CHARACTER") in text.lower():
if "exit" in text.lower(): if "exit" in text.lower():
break break
print("agent invoked") print("agent invoked")