Files
PyG2O/include/server/messages.nut

8 lines
305 B
Plaintext

function _message_call(data)
{
local compile_string = "try { " + data["code"] + " } catch(id) { print(\"[PyG2O] Error white executing the code: \" + id); return null; }";
local result = compilestring(compile_string)();
_send({"event": "sq_response", "uuid": data["uuid"], "data": result});
}