Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SimpleSimSoft_API by SimlorLP
- function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- --Example: Clear()
- function CP(x,y)
- term.setCursorPos(x,y)
- end
- --Example: CP(1,1)
- function TC(color)
- term.setTextColor(color)
- end
- --Example: TC(32768)
- function BC(color)
- term.setBackgroundColor(color)
- end
- --Example: BC(32)
- function Download(PastebinCode, Path)
- local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
- local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(PastebinCode) .. "?cb=" .. cacheBuster)
- datei = datei.readAll()
- local file = fs.open(Path, "w")
- file.write(datei)
- file.close()
- end
- --Example: Download("m9ZVhHD4", "Setup/SimSoft/Installer")
Add Comment
Please, Sign In to add comment