Computer_Craft_Coder

Untitled

Jan 29th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. --[[ AMU ]]--
  2.  
  3. --// Variables
  4.  
  5. changelog = http.get( "http://pastebin.com/raw/TQawBdPX" )
  6. updateVerLink = http.get( "http://pastebin.com/raw/psNXFekM" )
  7. currentVer = "0.0"
  8. local arg[0] = {...}
  9.  
  10. --// Functions
  11.  
  12. function getUpdateInfo()
  13. if changelog then
  14. print( webHandle.readAll() )
  15. else
  16. print("Couldn't connect to the internet!")
  17. end
  18. end
  19.  
  20. function update()
  21. print("Checking for updates")
  22. if currentVer ~= updateVerLink then
  23. print("Update found!")
  24. print("In 5 seconds type AMU update to update!")
  25. else
  26. print("No update found!")
  27. os.reboot()
  28. end
  29. end
Add Comment
Please, Sign In to add comment