The3vilM0nk3y

update.lua

Sep 15th, 2021 (edited)
1,482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. function downloadFile(link, fName)
  2.     d = http.get("https://pastebin.com/raw/"..link).readAll()
  3.     if d then
  4.         file = fs.open(fName, "w")
  5.         file.write(d)
  6.         file.close()
  7.     end
  8. end
  9. --if fs.exists("chatListener.lua") then fs.delete("chatListener.lua") end
  10. --if fs.exists("colonyInfo.lua") then fs.delete("colonyInfo.lua") end
  11. --if fs.exists("requestManager.lua") then fs.delete("requestManager.lua") end
  12. --if fs.exists("monitorManager.lua") then fs.delete("monitorManager.lua") end
  13. downloadFile("Taa1i9Tn", "chatListener.lua")
  14. downloadFile("wVz0Kg0N","colonyInfo.lua")
  15. downloadFile("rSDtwYBe","requestManager.lua")
  16. downloadFile("bVQbY1qL","monitorManager.lua")
  17. if not fs.exists("startup.lua") then
  18.     file = fs.open("startup.lua", "w");
  19.     file.write("shell.execute('requestManager.lua')")
  20.     file.close()
  21. end
  22. os.reboot()
  23.  
Advertisement
Add Comment
Please, Sign In to add comment