Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function downloadFile(url, file)
- http.request(url)
- event, eUrl, content = os.pullEvent()
- if event == "http_success" then
- body = content.readAll()
- file = fs.open(file, "w")
- file.write(body)
- file.flush()
- file.close()
- end
- end
- downloadFile("https://raw.githubusercontent.com/ZeeDerp/ComputerCraftProjects/master/baseNode.lua","startup")
- shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement