From 029760764a71beedd33e8895a12342b79c336cb7 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Thu, 14 Dec 2023 19:56:40 +0100 Subject: [PATCH] Adding more to queue_command --- source/behavior/entities/format/events.json | 24 +++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/source/behavior/entities/format/events.json b/source/behavior/entities/format/events.json index a8637e65..c93253ee 100644 --- a/source/behavior/entities/format/events.json +++ b/source/behavior/entities/format/events.json @@ -148,12 +148,24 @@ "description": "Queues a command to be executed.", "properties": { "command": { - "type": "array", - "items": { - "type": "string", - "description": "The command to execute.", - "examples": ["/say Hello World"] - } + "title": "Command", + "description": "The command to execute.", + "oneOf": [ + { + "type": "string", + "pattern": "^[^/].*$", + "examples": ["say Hello World"] + }, + { + "type": "array", + "items": { + "type": "string", + "description": "The command to execute.", + "examples": ["say Hello World"], + "pattern": "^[^/].*$" + } + } + ] } } }