Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while true do
- event, side, frequency, replyFrequency, message, distance =os.pullEvent("modem_message")
- if string.sub(message.message,1,#"turtle run ")=="turtle run " then
- command=string.sub(message.message,#"turtle run ")
- shell.run(command)
- end
- if string.sub(message.message,1,#"turtle do ")=="turtle do " then
- command=string.sub(message.message,#"turtle do "+1)
- fp=fs.open("command","w")
- fp.writeLine(command)
- fp.close()
- shell.run("command")
- end
- end
Add Comment
Please, Sign In to add comment