Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DJ program V4.3
- len = {["C418 - 13"]=360, ["C418 - cat"]=372, ["C418 - blocks"]=692, ["C418 - chirp"]=372, ["C418 - far"]=380, ["C418 - mall"]=394, ["C418 - mellohi"]=200, ["C418 - stal"]=302, ["C418 - strad"]=382, ["C418 - ward"]=500, ["C418 - 11"]=140, ["portalgun:wantyougone"]=284, ["portalgun:stillalive"]=350}
- perList = peripheral.getNames()
- while true do
- x = math.random(1, #perList)
- if peripheral.getType(perList[x]) == "drive" then
- if disk.hasAudio(perList[x]) ~= "false" then
- driveName = perList[x]
- title = disk.getAudioTitle(driveName)
- disk.playAudio(driveName)
- term.clear()
- term.setCursorPos(1, 1)
- print("Now Playing: "..title)
- sleep(len[title])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement