Commit 89f78163 authored by Danny SMc's avatar Danny SMc 🎧

Update uRetrieve

parent 3a87d95b
......@@ -31,15 +31,17 @@ term.write("> Program List:")
term.setCursorPos(1,6)
term.write("> 1. uAPI -> Lots of functions")
term.setCursorPos(1,7)
term.write("> 2. uLock -> Password locking for doors")
term.write("> 2. uLock -> Password locking for doors!")
term.setCursorPos(1,8)
term.write("> 3. uShare -> File sharing using rednet")
term.write("> 3. uShare -> File sharing using rednet!")
term.setCursorPos(1,9)
term.write("> 4. uNotepad -> File Taking, Made Easy!")
term.write("> 4. uNotepad -> Note Taking, Made Easy!")
term.setCursorPos(1,10)
term.write("> 5. uChat -> Chat with people in the overworld")
term.write("> 5. uChat -> Chat with people using IM!")
term.setCursorPos(1,11)
term.write("> 6. uOS -> Simplstic Operating System")
term.write("> 6. uOS -> Simplistic Operating System!")
term.setCursorPos(1,12)
term.write("> 7. uHug -> Virtually Hugging The World!")
term.setCursorPos(1,16)
term.setTextColour(colours.lime)
term.write("Choose an option using the numbers")
......@@ -133,4 +135,18 @@ elseif param1 == "6" then
term.write("> ~Done, file saved as: 'uOS'~")
sleep(1.5)
os.reboot()
elseif param1 == "7" then
term.setCursorPos(1,18)
term.write("> ~Downloading requested program...~")
sleep(1.5)
fileData5 = http.get("https://raw.github.com/dannysmc95/uprograms/master/uHug")
fileContent5 = fileData5.readAll()
local file = fs.open("uHug", "w")
file.write(fileContent5)
file.close()
term.setCursorPos(1,18)
term.clearLine()
term.write("> ~Done, file saved as: 'uHug'~")
sleep(1.5)
os.reboot()
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment