work on soundplayer with new implementation via Xevion.dev

This commit is contained in:
Xevion
2019-12-25 00:16:24 -06:00
parent cb4edd3734
commit 445438c555

View File

@@ -4,12 +4,19 @@
@persist Radio:entity URL:string @persist Radio:entity URL:string
@trigger @trigger
#interval(100) runOnChat(1)
runOnHTTP(1)
if(first()) { if(first()) {
Radio = entity() print("Attempting fetch of resource @ " + realtime())
URL = "https://www.dropbox.com/s/7l6v3nync6cq575/oki doki boomer.mp3?dl=0&raw=1" httpRequest("example.com")
print("Request made")
} }
if(httpClk()){print("Request finished"), print(httpData())}
if(streamCanStart()) { if(chatClk(owner())) {
Radio:streamStart(1, 100, URL) Message = lastSaid():explode(" ")
if(Message[1, string] == "!play") {
hideChat(1)
entity():streamStart(1, "https://xevion.dev/stream/youtube/sWe4sPvzRLw")
}
} }