Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = "" --id pastebin
- local url = "https://pastebin.com/raw/"..id
- local filename = "" --name program to check
- local code = "" --dont touch
- if fs.exists(filename) then
- local h=fs.open(filename,"r")
- code=h.readAll()
- h.close()
- end
- local h=http.get(url)
- local newcode=h.readAll()
- h.close()
- if newcode ~= code then
- local h=fs.open(filename,"w")
- h.write(newcode)
- h.close()
- end
- shell.run(filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement