Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sArgs = ...
- left,right,up,down,front,back = nil,nil,nil,nil,nil,nil
- --sArgs 'forceUpdate'
- if not fs.exists("helpful") then
- fs.makeDir("helpful")
- end
- function readTab(t)
- for i,v in pairs(t) do
- print(i,": ",v)
- end
- end
- sides = {'left','right','up','down','front','back'}
- for i,v in pairs(sides) do
- if v then
- loadstring( v.." = peripheral.wrap(\""..v.."\") " ) ()
- end
- end
- local programs = {
- EventViewer = "K8rtdFgX",
- AutoUpdate = "eyujLQr1",
- PeripheralCheck = "x3AEjJtd",
- uWords = "M4R2wazQ",
- }
- local runOnStartup = {
- uWords = "M4R2wazQ",
- }
- for i,v in pairs(programs) do
- if not fs.exists(i) or sArgs == "forceUpdate" then
- local tmp = fs.open("helpful/"..i,"w")
- tmp.write( http.get("http://pastebin.com/raw/"..v).readAll() )
- tmp.close()
- end
- end
- --uWords API
- if not draw or not readTab or sArgs == "forceUpdate" then
- --[[for _,v in pairs(runOnStartup) do
- loadstring(http.get("http://pastebin.com/raw/"..v).readAll())()
- end]]--
- for i in pairs(runOnStartup) do
- shell.run("helpful/"..i)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement