Advertisement
Guest User

ntchupdate.lua

a guest
Dec 7th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. -- Neptunium Chat Updater (v1.0 | December 7th, 2019)
  2.  
  3. term = require("term")
  4. component = require("component")
  5. computer = require("computer")
  6. event = require("event")
  7. gpu = component.gpu
  8. os = require("os")
  9. w, h = gpu.getResolution()
  10.  
  11. term.clear()
  12.  
  13. computer.beep(175, 0.25)
  14. computer.beep(200, 0.25)
  15. computer.beep(125, 0.5)
  16.  
  17. print("Welcome to the Neptunium Chat Updater!")
  18. print("\n Please select what branch you'd like to download:")
  19. print("[F]inal, [W]ork In Progress")
  20.  
  21. branch = io.read()
  22.  
  23. while branch == "F" or branch == "f" do -- Select the Final branch
  24.     os.execute('wget -f https://raw.githubusercontent.com/ntfluoride/neptunium-chat/master/ntch.lua /home/ntch.lua')
  25.     os.exit()
  26. end
  27.  
  28. while branch == "W" or branch == "w" do -- Select the Work In Progress branch
  29.     os.execute('wget -f https://raw.githubusercontent.com/ntfluoride/neptunium-chat/wip/ntch.lua /home/ntch.lua')
  30.     os.exit()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement