Advertisement
EliteGaming

Elite Remote Hub

Mar 23rd, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. deviceFunction = nil
  2.  
  3.     function start()
  4.    
  5.     term.setTextColor(colors.cyan)
  6.     term.clear()
  7.     term.setCursorPos(1,1) 
  8.     print("What is the function of this computer? [toggler,pocket,monitor,updater,smeltery]")
  9.                 write(">")
  10.                 command = read()
  11.                 deviceFunction = command:lower()
  12.                 term.clear()
  13.         runCorrespondingProgram()
  14.         end
  15.  
  16.  
  17.  
  18.     function runCorrespondingProgram()
  19.  
  20.         if deviceFunction == "pocket" then
  21.             shell.run("delete pocket")
  22.             shell.run("pastebin get ASa2uiTC pocket")
  23.             shell.run("pocket")
  24.  
  25.         else if (deviceFunction == "toggler") then
  26.             shell.run("delete toggler")
  27.             shell.run("pastebin get J1ErE7pj toggler")
  28.             shell.run("toggler")
  29.  
  30.         else if (deviceFunction == "smeltery") then
  31.             shell.run("delete smeltery")
  32.             shell.run("pastebin get 1xTMADeX smeltery")
  33.             shell.run("smeltery")
  34.  
  35.         else if (deviceFunction == "monitor") then
  36.             shell.run("pastebin run ")
  37.  
  38.         else if (deviceFunction == "updater") then
  39.             shell.run("pastebin run ")
  40.        
  41.     else
  42.         print("Sorry deviceFunction set is not a function. [Type slower Elite]")
  43.  
  44.     end
  45.     end
  46.     end
  47.     end
  48.     end
  49.     end
  50.  
  51.     start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement