Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

ComputerCraft Tutorial: auto_download0_1

hevohevo May 31st, 2014 1,262 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. -- ############################
  2. -- Auto Download program
  3. -- http://hevohevo.hatenablog.com/
  4.  
  5. -- config
  6. API_NAME = "test_api"
  7. PASTEBIN_CODE = "TeWK9FBw"
  8.  
  9. -- function
  10. function installAPI(name,code)
  11.   if fs.exists(name) then
  12.     print("API_FILE exists.")
  13.   else
  14.     print("API_FILE doesn't exist.")
  15.     shell.run("pastebin","get",code,name)
  16.   end
  17.   os.loadAPI(name)
  18. end
  19.  
  20. -- main
  21. installAPI(API_NAME, PASTEBIN_CODE)
  22. test_api.testPrint()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top