Gulligagardinen

Ice-Mail-installer

Aug 10th, 2013
719
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. assert(http, "Please activate the http API before installing")
  2. while true do
  3.     term.clear() term.setCursorPos(1, 1)
  4.     print("You are about to install Ice-Mail. Proceed? y/n")
  5.     local input = string.lower(io.read())
  6.     if input == 'y' or input == "yes" then
  7.         print("Would you like to install the server or the client?")
  8.         repeat
  9.             input = string.lower(io.read())
  10.         until input == "server" or input == "client"
  11.         if input == "server" then
  12.             shell.run("pastebin", "get", "H7VctyCk", "IceMail-server")
  13.             term.clear() term.setCursorPos(1, 1)
  14.             print("You have successfully installed the Ice-Mail server")
  15.             break
  16.         elseif input == "client" then
  17.             shell.run("pastebin", "get", "c0FG9EBT", "IceMail-client")
  18.             term.clear() term.setCursorPos(1, 1)
  19.             print("You have successfully installed the Ice-Mail client")
  20.             break
  21.         end
  22.     elseif input == 'n' or input == "no" then
  23.         term.clear() term.setCursorPos(1, 1)
  24.         break
  25.     end
  26. end
RAW Paste Data