This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TyDoesMC's profile picture

Script updater (will be updated)

Started by TyDoesMC, 27 February 2014 - 05:09 PM
TyDoesMC #1
Posted 27 February 2014 - 06:09 PM
Hello, I've made a program for programmers can use with there api, program, script.
all you do is make a paste in pastebin (note: must be posted while logged in to pastebin), then update that first paste by clicking "edit",
then the person downloads the new updated script eg: pastebin.com/DQUk0VCF
Change the area prompt with your paste and program name, then update the same paste and then they will download the updated version.


--[[ automatic updater ]]--
write("update?: ")
input = read()
if input == "update" then
print("Updating...")
shell.run("pastebin get (your pastebin here) (name)")
else
print("now exiting...")
os.reboot()
end
Edited on 27 February 2014 - 05:10 PM
gametechish #2
Posted 01 March 2014 - 01:25 AM
cool im gonna use this
willwac #3
Posted 01 March 2014 - 01:45 AM
Eh. Most people make their own updaters.