mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-02 21:04:24 +01:00
run black and isort on behalf of OP
This commit is contained in:
@@ -124,7 +124,10 @@ def execute_command(
|
||||
shutdown()
|
||||
else:
|
||||
for command in prompt.commands:
|
||||
if command_name == command["label"].lower() or command_name == command["name"].lower():
|
||||
if (
|
||||
command_name == command["label"].lower()
|
||||
or command_name == command["name"].lower()
|
||||
):
|
||||
return command["function"](**arguments)
|
||||
return (
|
||||
f"Unknown command '{command_name}'. Please refer to the 'COMMANDS'"
|
||||
|
||||
Reference in New Issue
Block a user