Files
tello-commander/brain/cli.py

14 lines
323 B
Python

from brain_openai import CloudChatBrain
brain = CloudChatBrain()
while True:
try:
brain.listen(channel="cli")
if not brain.is_emergency(brain.cmd_prompt):
brain.understand()
brain.command()
except Exception as e:
print(f"##### SOMETHING WENT WRONG ###### \n {e}")