Advertisement
osmarks

MultiARC

Dec 30th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local configs = fs.find "arc*.tbl"
  2. local h = http.get "https://pastebin.com/raw/vdmRK38T"
  3. local ARC, err = loadstring(h.readAll())
  4. if err then error(err) end
  5. h.close()
  6.  
  7. local instances = {}
  8.  
  9. for _, config in pairs(configs) do
  10.     table.insert(instances, function() ARC(config) end)
  11. end
  12.  
  13. parallel.waitForAll(unpack(instances))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement