Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --+------------+--
- --| Rc Turtle |--
- --| By Assossa |--
- --+------------+--
- rednet.open("right")
- local args = {...}
- local id = 1
- if args[1] ~= nil then
- id = tonumber(args[1])
- end
- while true do
- local i,m,d = rednet.receive()
- if i == id then
- local s,e = pcall(loadstring(m))
- if not s then
- print("Error: "..e..", Trying To Execute: "..m)
- rednet.send(id,"!"..e)
- else
- print("Executed: "..m)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment