---@diagnostic disable: need-check-nil local function cPrint(msg)…
- User
---@diagnostic disable: need-check-nil local function cPrint(msg) http.post("https://turtle.drewh.net/status", msg) end
local args = { ... }
local file = fs.open("computer.txt", "r") local name = file.readAll() print("computer name is: " .. name)
cPrint(textutils.serialiseJSON(peripheral.getNames()))
-- Queue to store pending evaluations local evalQueue = {}
-- Function to handle a single evaluation local function handleEval(ws, obj) local func = loadstring(obj["function"]) if func == nil then return end local funcArgs = obj["args"] if funcArgs == nil then funcArgs = {} end local ok, result = pcall(func, unpack(funcArgs)) if not ok then return end ws.send(textutils.serialiseJSON({ data = result })) end
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.