DabDaddy6223

jukebox_frontend_setup

Jun 19th, 2026 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.36 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("PYMJnM8b", "startup")
  9. update("V6ZxZAdn", "jukebox_frontend")
  10. update("LCxQg39Q", "jukebox_frontend_songlist")
  11. update("i27zCiqx", "jukebox_frontend_queue")
  12. update("4LwTY48b", "jukebox_frontend_clean")
  13.  
  14. if not fs.exists("/songs") then
  15.     fs.makeDir("/songs")
  16. end
  17.  
  18. -- Minecraft songs
  19. if not fs.exists("/songs/minecraft") then
  20.     fs.makeDir("/songs/minecraft")
  21. end
  22.  
  23. if not fs.exists("/songs/minecraft/minecraft.json") then
  24.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/minecraft.json")
  25.     fs.move("/minecraft.json", "/songs/minecraft/minecraft.json")
  26. end
  27.  
  28. if not fs.exists("/songs/minecraft/otherside.json") then
  29.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/minecraft/otherside.json")
  30.     fs.move("/otherside.json", "/songs/minecraft/otherside.json")
  31. end
  32.  
  33. -- Doctor Who Songs
  34. if not fs.exists("/songs/doctor_who") then
  35.     fs.makeDir("/songs/doctor_who")
  36. end
  37.  
  38. if not fs.exists("/songs/doctor_who/i_am_the_doctor.json") then
  39.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/i_am_the_doctor.json")
  40.     fs.move("/i_am_the_doctor.json", "/songs/doctor_who/i_am_the_doctor.json")
  41. end
  42.  
  43. if not fs.exists("/songs/doctor_who/vale_decem.json") then
  44.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/doctor_who/vale_decem.json")
  45.     fs.move("/vale_decem.json", "/songs/doctor_who/vale_decem.json")
  46. end
  47.  
  48. -- Other songs
  49. if not fs.exists("/songs/other") then
  50.     fs.makeDir("/songs/other")
  51. end
  52.  
  53. if not fs.exists("/songs/other/aint_got_rhythm.json") then
  54.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/aint_got_rhythm.json")
  55.     fs.move("/aint_got_rhythm.json", "/songs/other/aint_got_rhythm.json")
  56. end
  57.  
  58. if not fs.exists("/songs/other/summer_belongs_to_you.json") then
  59.     shell.run("wget", "https://raw.githubusercontent.com/dabusmc/jukebox_data/refs/heads/main/songs/other/summer_belongs_to_you.json")
  60.     fs.move("/summer_belongs_to_you.json", "/songs/other/summer_belongs_to_you.json")
  61. end
  62. ---------------
Advertisement
Add Comment
Please, Sign In to add comment