From aa6cb4cf81cb7d92eebe0e826138f8a7d5f3194f Mon Sep 17 00:00:00 2001 From: Torantulino Date: Thu, 30 Mar 2023 12:47:55 +0100 Subject: [PATCH] Fixes "unknown command: browse webiste" --- AutonomousAI/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutonomousAI/commands.py b/AutonomousAI/commands.py index dabdd992..5bde01ad 100644 --- a/AutonomousAI/commands.py +++ b/AutonomousAI/commands.py @@ -53,8 +53,8 @@ def execute_command(command_name, arguments): elif command_name == "get_hyperlinks": return get_hyperlinks(arguments["url"]) elif command_name == "write_to_file": - return write_to_file(arguments["file"], arguments["content"]) - elif browse_website == "browse_website": + return write_to_file(arguments["file"], arguments["text"]) + elif command_name == "browse_website": return browse_website(arguments["url"]) elif command_name == "task_complete": shutdown()