DabDaddy6223

jukebox_backend_setup

Jun 20th, 2026 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.25 KB | None | 0 0
  1. function update(pastebin, file_name)
  2.     if fs.exists(file_name) then
  3.         fs.delete(file_name)
  4.     end
  5.     shell.run("pastebin", "get", pastebin, file_name)
  6. end
  7.  
  8. update("XP72Xcr0", "jukebox_backend")
  9. update("4LwTY48b", "jukebox_backend_clean")
  10.  
  11. -- SONG DATA --
  12. if not fs.exists("/songs") then
  13.     fs.makeDir("/songs")
  14. end
  15.  
  16. -- Minecraft songs
  17. if not fs.exists("/songs/minecraft") then
  18.     fs.makeDir("/songs/minecraft")
  19. end
  20.  
  21. if not fs.exists("/songs/minecraft/minecraft.json") then
  22.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/minecraft.json")
  23.     fs.move("/minecraft.json", "/songs/minecraft/minecraft.json")
  24. end
  25.  
  26. if not fs.exists("/songs/minecraft/otherside.json") then
  27.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/otherside.json")
  28.     fs.move("/otherside.json", "/songs/minecraft/otherside.json")
  29. end
  30.  
  31. -- Doctor Who Songs
  32. if not fs.exists("/songs/doctor_who") then
  33.     fs.makeDir("/songs/doctor_who")
  34. end
  35.  
  36. if not fs.exists("/songs/doctor_who/i_am_the_doctor.json") then
  37.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/i_am_the_doctor.json")
  38.     fs.move("/i_am_the_doctor.json", "/songs/doctor_who/i_am_the_doctor.json")
  39. end
  40.  
  41. if not fs.exists("/songs/doctor_who/vale_decem.json") then
  42.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/vale_decem.json")
  43.     fs.move("/vale_decem.json", "/songs/doctor_who/vale_decem.json")
  44. end
  45.  
  46. -- Other songs
  47. if not fs.exists("/songs/other") then
  48.     fs.makeDir("/songs/other")
  49. end
  50.  
  51. if not fs.exists("/songs/other/aint_got_rhythm.json") then
  52.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/aint_got_rhythm.json")
  53.     fs.move("/aint_got_rhythm.json", "/songs/other/aint_got_rhythm.json")
  54. end
  55.  
  56. if not fs.exists("/songs/other/summer_belongs_to_you.json") then
  57.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/summer_belongs_to_you.json")
  58.     fs.move("/summer_belongs_to_you.json", "/songs/other/summer_belongs_to_you.json")
  59. end
  60. ---------------
Advertisement
Add Comment
Please, Sign In to add comment