Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update(pastebin, file_name)
- if fs.exists(file_name) then
- fs.delete(file_name)
- end
- shell.run("pastebin", "get", pastebin, file_name)
- end
- update("XP72Xcr0", "jukebox_backend")
- update("4LwTY48b", "jukebox_backend_clean")
- -- SONG DATA --
- if not fs.exists("/songs") then
- fs.makeDir("/songs")
- end
- -- Minecraft songs
- if not fs.exists("/songs/minecraft") then
- fs.makeDir("/songs/minecraft")
- end
- if not fs.exists("/songs/minecraft/minecraft.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/minecraft.json")
- fs.move("/minecraft.json", "/songs/minecraft/minecraft.json")
- end
- if not fs.exists("/songs/minecraft/otherside.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/otherside.json")
- fs.move("/otherside.json", "/songs/minecraft/otherside.json")
- end
- -- Doctor Who Songs
- if not fs.exists("/songs/doctor_who") then
- fs.makeDir("/songs/doctor_who")
- end
- if not fs.exists("/songs/doctor_who/i_am_the_doctor.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/i_am_the_doctor.json")
- fs.move("/i_am_the_doctor.json", "/songs/doctor_who/i_am_the_doctor.json")
- end
- if not fs.exists("/songs/doctor_who/vale_decem.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/vale_decem.json")
- fs.move("/vale_decem.json", "/songs/doctor_who/vale_decem.json")
- end
- -- Other songs
- if not fs.exists("/songs/other") then
- fs.makeDir("/songs/other")
- end
- if not fs.exists("/songs/other/aint_got_rhythm.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/aint_got_rhythm.json")
- fs.move("/aint_got_rhythm.json", "/songs/other/aint_got_rhythm.json")
- end
- if not fs.exists("/songs/other/summer_belongs_to_you.json") then
- shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/summer_belongs_to_you.json")
- fs.move("/summer_belongs_to_you.json", "/songs/other/summer_belongs_to_you.json")
- end
- ---------------
Advertisement
Add Comment
Please, Sign In to add comment