Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deviceFunction = nil
- function start()
- term.setTextColor(colors.cyan)
- term.clear()
- term.setCursorPos(1,1)
- print("What is the function of this computer? [toggler,pocket,monitor,updater,smeltery]")
- write(">")
- command = read()
- deviceFunction = command:lower()
- term.clear()
- runCorrespondingProgram()
- end
- function runCorrespondingProgram()
- if deviceFunction == "pocket" then
- shell.run("delete pocket")
- shell.run("pastebin get ASa2uiTC pocket")
- shell.run("pocket")
- else if (deviceFunction == "toggler") then
- shell.run("delete toggler")
- shell.run("pastebin get J1ErE7pj toggler")
- shell.run("toggler")
- else if (deviceFunction == "smeltery") then
- shell.run("delete smeltery")
- shell.run("pastebin get 1xTMADeX smeltery")
- shell.run("smeltery")
- else if (deviceFunction == "monitor") then
- shell.run("pastebin run ")
- else if (deviceFunction == "updater") then
- shell.run("pastebin run ")
- else
- print("Sorry deviceFunction set is not a function. [Type slower Elite]")
- end
- end
- end
- end
- end
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement