18 lines
448 B
Lua
18 lines
448 B
Lua
local url = "https://ghxx.dev/acScripts4fd65g4dfh6/autocraft.lua"
|
|
|
|
local http = components:getFirst("internet")
|
|
local fs = require("filesystem")
|
|
|
|
|
|
print("getting code...")
|
|
local resp=http:sendHttpRequest(url, "GET")
|
|
assert(resp:getStatusCode() == 200, "non 200 status")
|
|
local code = resp:getResponseBody()
|
|
print("compiling and running...")
|
|
|
|
f=assert(load(code))
|
|
local ok, res = xpcall(f, debug.traceback)
|
|
if not ok then
|
|
print("ERROR:\n"..res)
|
|
end
|