Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- event, id, message, messageType = os.pullEvent("rednet_message")
- print("Terminal: ",id)
- print("Command: ",message)
- print("Sub-command: ",messageType)
- print()
- if message == "movement" then
- shell.run("CadeOS/movement.lua",messageType)
- elseif message == "rotate" then
- shell.run("CadeOS/rotate.lua",messageType)
- elseif message == "cadeMine" then
- shell.run("CadeOS/cadeMine.lua")
- elseif message == "cadeMine2" then
- shell.run("CadeOS/cadeMine2",messageType)
- end
- shell.run("CadeOS/alwaysListen.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement