Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- assert(http, "Please activate the http API before installing")
- while true do
- term.clear() term.setCursorPos(1, 1)
- print("You are about to install Ice-Mail. Proceed? y/n")
- local input = string.lower(io.read())
- if input == 'y' or input == "yes" then
- print("Would you like to install the server or the client?")
- repeat
- input = string.lower(io.read())
- until input == "server" or input == "client"
- if input == "server" then
- shell.run("pastebin", "get", "H7VctyCk", "IceMail-server")
- term.clear() term.setCursorPos(1, 1)
- print("You have successfully installed the Ice-Mail server")
- break
- elseif input == "client" then
- shell.run("pastebin", "get", "c0FG9EBT", "IceMail-client")
- term.clear() term.setCursorPos(1, 1)
- print("You have successfully installed the Ice-Mail client")
- break
- end
- elseif input == 'n' or input == "no" then
- term.clear() term.setCursorPos(1, 1)
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement