init
This commit is contained in:
13
update.lua
Normal file
13
update.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
local CONFIG_URL = "https://raw.githubusercontent.com/Neoblacks/scriptLua/main/script.lua"
|
||||||
|
|
||||||
|
local function downloadFile(url, dest)
|
||||||
|
local response = http.get(url)
|
||||||
|
if response then
|
||||||
|
local file = io.open(dest, "wb")
|
||||||
|
file:write(response.readAll())
|
||||||
|
file:close()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
downloadFile(CONFIG_URL, "script.lua")
|
||||||
|
|
||||||
Reference in New Issue
Block a user