-- ############################
-- Auto Download program
-- http://hevohevo.hatenablog.com/
-- version 0.2
-- Config
-- api_name="pastebin code"
API_INFO = {
test_api="TeWK9FBw",
test_api2="NCYAEPRA"
}
-- 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
for k,v in pairs(API_INFO) do
installAPI(k, v)
end
test_api.testPrint()
test_api2.testPrint()