mirror of
https://github.com/Xevion/expression-2.git
synced 2025-12-06 01:14:57 -06:00
work on soundplayer with new implementation via Xevion.dev
This commit is contained in:
@@ -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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user