Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local links = {
- dpaste = "CQfv27Az",
- fileHandler = "d7jHVtRV",
- lib/f = "Dai82QtW",
- lib/getInput = "J0yUcp19",
- portal = {
- API = "MMe4RGrM",
- GUI = "TqV0Mi9L",
- },
- }
- if not fs.exists("/lib") then
- fs.makeDir("/lib")
- end
- if not fs.exists("/portal") then
- fs.makeDir("/portal")
- end
- -- TEMP_saveFromHTTP if /dpaste.lua doesn't exist on this computer
- local function saveFromHTTP()
- local h = fs.open("/dpaste","w")
- local obj = http.get("https://pastebin.com/raw/"..dpaste_link)
- if obj == nil or obj.getResponseCode ~= 200 then
- error("Failed!")
- end
- local text = obj.readAll()
- h.write(text)
- h.close()
- end
- if not fs.exists("/dpaste") then saveFromHTTP() end
- if not fs.exists("/lib/fileHandler") then shell.run("/dpaste","1","MMe4RGrM","/lib/FileHandler") end
- if not fs.exists("/lib/f") then shell.run("/spaste","1","Dai82QtW","/portal/f") end
- if not fs.exists("/lib/getInput") then shell.run("/dpaste","1","J0yUcp19","/portal/lib/getInput") end
- if not fs.exists("/portal/API") == false then shell.run("dpaste","1","MMe4RGrM","/portal/lib/API") end
- shell.run("clear")
- fs.delete("/portal/GUI")
- shell.run("/dpaste","1","TqV0Mi9L","/portal/GUI")
- shell.run("cd","/portal")
- while true do
- shell.run("/portal/GUI")
- sleep(5)
- end
Add Comment
Please, Sign In to add comment