initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user