Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ AMU ]]--
- --// Variables
- changelog = http.get( "http://pastebin.com/raw/TQawBdPX" )
- updateVerLink = http.get( "http://pastebin.com/raw/psNXFekM" )
- currentVer = "0.0"
- local arg[0] = {...}
- --// Functions
- function getUpdateInfo()
- if changelog then
- print( webHandle.readAll() )
- else
- print("Couldn't connect to the internet!")
- end
- end
- function update()
- print("Checking for updates")
- if currentVer ~= updateVerLink then
- print("Update found!")
- print("In 5 seconds type AMU update to update!")
- else
- print("No update found!")
- os.reboot()
- end
- end
Add Comment
Please, Sign In to add comment