Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.delete("startup")
- fs.delete("OS")
- fs.delete("client")
- function check(side)
- if peripheral.isPresent("top") then return "top" end
- if peripheral.isPresent("bottom") then return "bottom" end
- if peripheral.isPresent("back") then return "back" end
- if peripheral.isPresent("front") then return "front" end
- if peripheral.isPresent("right") then return "right" end
- if peripheral.isPresent("left") then return "left" end
- return false
- end
- side = ""
- isThere = check(side)
- if isThere == "" then
- shell.run("rom/programs/http/pastebin", "get", "K5g8wmeg", "client")
- local file = fs.open("/startup", "w")
- file.write("shell.run('monitor', '"..side.."', 'client')")
- file.close()
- else shell.run("rom/programs/http/pastebin", "get", "K5g8wmeg", "startup") end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement