Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function install()
- file1 = http.get("http://mackan90096.dustinschreiber.com/gemminer/files/1.1/gemminer") --This line downloads the file
- file1txt = file1.readAll() --Reads the contents
- file1opn = fs.open("GemMiner","w") --Opens file
- file1opn.write(file1txt) --writing the file
- file1opn.close()
- file2 = http.get("http://mackan90096.dustinschreiber.com/gemminer/files/1.1/game1") --This line downloads the file
- file2txt = file2.readAll() --Reads the contents
- file2opn = fs.open(".game1","w") --Opens file
- file2opn.write(file2txt) --writing the file
- file2opn.close()
- end
- function main()
- term.clear()
- term.setBackgroundColor(2048)
- term.setTextColor(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Installing GemMiner")
- install()
- sleep(1)
- term.clear()
- term.setBackgroundColor(2048)
- term.setTextColor(1)
- term.setCursorPos(1,1)
- print("Installed!")
- term.setCursorPos(1,2)
- print("Your computer will now reboot.")
- sleep(1)
- os.reboot()
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement