Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ############################
- -- Auto Download program
- -- http://hevohevo.hatenablog.com/
- -- config
- API_NAME = "test_api"
- PASTEBIN_CODE = "TeWK9FBw"
- -- function
- function installAPI(name,code)
- if fs.exists(name) then
- print("API_FILE exists.")
- else
- print("API_FILE doesn't exist.")
- shell.run("pastebin","get",code,name)
- end
- os.loadAPI(name)
- end
- -- main
- installAPI(API_NAME, PASTEBIN_CODE)
- test_api.testPrint()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement