Add reboot command handling in processCommand function

This commit is contained in:
MayaTheShy
2026-03-22 03:15:52 -04:00
parent e1186ab532
commit 00206ef794

View File

@@ -176,6 +176,12 @@ local function processCommand(cmd)
commandId = cmd.commandId, commandId = cmd.commandId,
recipeIdx = cmd.recipeIdx, recipeIdx = cmd.recipeIdx,
}) })
elseif action == "reboot" then
modem.transmit(ORDER_CHANNEL, BROADCAST_CHANNEL, {
type = "reboot",
commandId = cmd.commandId,
target = cmd.target or "all",
})
else else
print("[CMD] Unknown action: " .. tostring(action)) print("[CMD] Unknown action: " .. tostring(action))
end end