Tutorial/Apiloader

This tutorial will cover making your own Apiloader, which can load usermade APIs. If you dont have a usermade api to test on, you can create Your first API. We will be using the "first" api to load in this example, but it works for all apis.

First, if you havent allready, create a folder named "api".

Then create a file called "apiloader".

Now let's get working. print("Apiloader v. 1.0") print("Getting avaible apis") local filelist = fs.list("api") if filelist == nil then          -- If the program cant find any apis then... print("Could not find any apis") sleep(2) return end for i=1, #filelist do         -- For the amount of apis found, do... os.loadAPI("api/"..filelist[i])  -- Load the first api the program founds, then the next etc. print("Loaded "..filelist[i].." api") end print("Loaded "..#filelist.." apis") And there we have it. Just run this program to load all apis in the folder "api".

To run it at startup change the startup file to

shell.run("apiloader")