Files
PyG2O/include/server/messages.nut

8 lines
341 B
Plaintext

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