Advertisement
Reavik

music

Jan 11th, 2023 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. local dfpwm = require("cc.audio.dfpwm")
  2. local speaker = peripheral.find("speaker")
  3.  
  4. local again = true
  5.  
  6. if speaker == nil then
  7.     again = false
  8. error("[Robsom] Speaker não encontrado")
  9. end
  10.  
  11. local li = {
  12.     {name = "Ia Ri o Roi", link = "https://cdn.discordapp.com/attachments/1093584787589058591/1093584864999116851/AJR_-_3_OClock_Things_Official_Video.dfpwm?ex=662a8fc5&is=66181ac5&hm=918123737fa669a7785d2f234836ae6054aaa84570c3352ae858f04c437a0dfc&"},
  13.     {name = "Não sei o nome", link = "https://cdn.discordapp.com/attachments/1093584787589058591/1093584865313685637/AJR_-_BANG_Official_Video.dfpwm?ex=662a8fc5&is=66181ac5&hm=1bd940569008bf450072d8129b7f4bd748b2213a84b19ff4ffc5a4c3e3867317&"},
  14.     {nome = "Liber extravaza", link = "https://cdn.discordapp.com/attachments/1093584787589058591/1093584866047692900/AJR_-_Christmas_in_June_Official_Video.dfpwm?ex=662a8fc5&is=66181ac5&hm=37b9300aa60a63a9f00388c514ef9183a54744376d3d3a312a320eba42f7031e&"},
  15. }
  16. while again == true do
  17.  
  18.     print("[Robsom] Reproduzindo playlist")
  19.  
  20.  
  21.         shell.run("speaker play "..li[1].link)
  22.  
  23. end
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement