Comment stuff, add (semi)-autosetup

This commit is contained in:
2018-04-29 15:32:49 +01:00
parent 7b4b2bca4f
commit 4db2dad592
4 changed files with 42 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
local root = "https://osmarks.ml/git/osmarks/dragon/raw/branch/master/"
local function download(name, file)
local contents = http.get(root .. name).readAll()
local f = fs.open(file, "w")
f.write(contents)
f.close()
end
local files = { "client.lua", "server.lua", "util.lua" }
for _, f in pairs(files) do
download(f, f)
print("Downloaded", f)
end
print "Files downloaded. Either client.lua or server.lua should be run on startup."
print "Opening config editor..."
shell.run "edit conf"
fs.move("conf.lua", "conf") -- edit is really stupid, so un-.lua file