From bf3789023854fb10e335116fb7df9bd5b48dd8f9 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 12 Nov 2024 19:22:55 -0500 Subject: [PATCH] cmdinterface: Support "status" command to trigger room status json --- src/stdinreader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stdinreader.cpp b/src/stdinreader.cpp index e5c68050db9..db8301f1126 100644 --- a/src/stdinreader.cpp +++ b/src/stdinreader.cpp @@ -1062,6 +1062,12 @@ int cmdInputThreadFunc(void *) } }); } + else if(!strncmpl(line, "status")) + { + wzAsyncExecOnMainThread([] { + wz_command_interface_output_room_status_json(); + }); + } else if(!strncmpl(line, "shutdown now")) { inexit = true;