Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version = 1.3
- local filename = "startup"
- local paste = "AVHacqLa"
- local function update()
- local url = "http://pastebin.com/raw.php?i="..paste
- local temp = http.get(url)
- local ver = temp.readLine()
- if tonumber(string.sub(ver, 17)) ~= version then
- fs.delete(filename)
- shell.run("pastebin get "..paste.." "..filename)
- shell.run(filename)
- return true
- end
- return false
- end
- local test = update()
- if test == true then
- error()
- end
- rednet.open("front")
- local discs = {}
- discs.blocks = "bottom"
- discs.far = "left"
- discs.mall = "top"
- discs.strad = "right"
- discs.wait = "back"
- --{"blocks" = "bottom", "far" = "left", "mall" = "top", "strad" = "right", "wait" = "back"}
- shell.run("clear")
- print("~Running Music Player Server~")
- print("Version: "..version)
- while true do
- id,msg = rednet.receive()
- if id == 3 then
- if msg == "stop" then
- disk.stopAudio()
- else
- disk.playAudio(discs[msg])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement