Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function download(folder,files,rmFolder,rmFile)
- if rmFolder then
- fs.delete(folder)
- end
- -- make the folder
- fs.makeDir(folder)
- -- download files
- for code, filename in pairs(files) do
- if rmFile then
- fs.delete(folder.."/"..filename)
- end
- shell.run("pastebin","get", code, folder.."/"..filename)
- end --for
- end --function
- -- the list of files to download
- -- just comment out unwanted files
- local myapis={
- ["iYV8PrtL"]="poz2",--have to do like this if code starts with number
- ["w5y9qcSp"]="poz2a",
- ["1sajuqmJ"]="poz3",
- ["pYE2EykZ"]="poz3a",
- ["5cAbjHsM"]="sha256",--(made by GravityScore)
- --["eBiUQeyu"]="hsign",
- ["iKRK97NL"]="hsign2",
- }
- -- the list of files to download
- -- just comment out unwanted files
- local myprograms={
- ["LK9UYwi9"]="poz2test",--have to do like this if code starts with number
- ["JiYQBViS"]="excavating",
- ["mgZhFzR7"]="dcube",
- ["iD8UZqM5"]="dcube2",
- ["93tf5WM0"]="poz3test",
- --["afN3tpQ0"]="testhsign",
- ["pSmAGU7W"]="testhsign2",
- ["JythwYyW"]="orefinder",
- ["iiRX8ezE"]="orefinder2",
- }
- args={...}
- local rm=false
- if #args==1 then
- if args[1]=="rm" then
- rm=true
- end
- end
- download("/theinsektAPIs",myapis,false,true)
- download("/theinsekt",myprograms,false,true)
Add Comment
Please, Sign In to add comment