Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local running = true
- local modem = peripheral.wrap("front")
- modem.open(420)
- function Main()
- while running do
- local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- message = textutils.unserialize(message)
- if(message.type == "run") then
- if(message.command == "updateCode") then
- print("hi")
- shell.run("updateCode", "2zDEADBQ",shell.getRunningProgram())
- end
- end
- end
- end
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement