Advertisement
DeBrates

Startup ID [ComputerCraft] Startup Program w/ Autorun

Sep 4th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Startup ID by DeBrates
  2. --Intended as Startup program
  3.  
  4. --Gets label and ID of computer
  5. local name = os.getComputerLabel()
  6. local id = os.getComputerID()
  7.  
  8. --Prints label and ID on startup
  9. if name == nil then
  10.     print("Untitled, ID:"..id)
  11. else
  12.     print(name..", ID:"..id)
  13. end
  14. print("")
  15.  
  16. --(Autorun)Change this string to program intended to run on startup
  17. shell.run("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement