largeNumberGoeshere

getpastebins.lua

Apr 19th, 2021 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. local prefix = "pastebin get"
  2. local folder = "./pb/"
  3.  
  4. local pastes = {} --"ZeSHG5GF","YB7R98zw"}
  5. local pasteNames = {} --"test.lua","refresh.lua"}
  6.  
  7. function newPaste(name,location)
  8.     table.insert(pastes,location)
  9.     table.insert(pasteNames,name)
  10. end
  11.  
  12. function getPastes()
  13.     for i,v in pairs(pastes) do
  14.         local r = prefix.." "..v.." "..folder..pasteNames[i]
  15.         print(r)
  16.         shell.run(r)
  17.     end
  18. end
  19.  
  20. ---confirm
  21. print("this will overwrite existing files. Continue? (Y)")
  22. local r = read()
  23. if r ~= "Y" then
  24.     error("\n User declined")
  25. end
  26.  
  27. fs.delete(folder)
  28.  
  29.  
  30.  
  31.  
  32. newPaste("test.lua","ZeSHG5GF")
  33. --newPaste("refresh.lua","YB7R98zw")
  34. newPaste("tunnelandback.lua","2zTAXzhe")
  35. newPaste("burnfuel.lua","Yg1FxrCt")
  36. newPaste("justbreak.lua","9ryMNfWr")
  37. newPaste("playnote.lua","cccTijSW")
  38. newPaste("checkForKey.lua","GYx6baDa")
  39. newPaste("dietree2.lua","f668qD33")
  40. newPaste("makepathway.lua","45AJGttZ")
  41. newPaste("refresh.lua","hZTKJeFw")
  42. newPaste("mnt.lua","Qx0t14Jr")
  43. newPaste("umnt.lua","8jgEcxkr")
  44. newPaste("getFuelVal.lua","HrWEnVBR")
  45.  
  46. getPastes()
Add Comment
Please, Sign In to add comment