Update app.py

This commit is contained in:
BillSchumacher
2023-04-20 02:19:20 -05:00
parent 99eac6c1d9
commit c561fe8925

View File

@@ -125,7 +125,7 @@ def execute_command(
else:
for command in prompt.commands:
if command_name == command["label"] or command_name == command["name"]:
return command["function"](*arguments.values())
return command["function"](**arguments)
return (
f"Unknown command '{command_name}'. Please refer to the 'COMMANDS'"
" list for available commands and only respond in the specified JSON"