Jump to content

Radio Code


JOhnson

Recommended Posts

:yes: ok err0r I have edited this and what I will do is I will stream music all day today (Thursday 2nd July) and into the early hours of Friday .... I dont know if you are five hours behind ect this is the link: http://myradiostream.com/32/8104 and you might need this link and all http://s32.myradiostream.com:8104/ again thank you for your reply and help on this one :D

Edited by JOhnson
Link to comment
Share on other sites

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic


menu channel {
Radio Test
.Set Channel: { set %radiotest.room $$?="Full Channel Name" }
.$iif($timer(.radiotest),$style(2)) Turn On: { radiotest | .timer.radiotest 0 10 radiotest | echo -a radiotest msg on }
.$iif(!$timer(.radiotest),$style(2)) Turn Off: { unset %radiotest.song | unset %radiotest.lastsong | .timer.radiotest off | echo -a radiotest msg off }
}
alias radiotest { sockclose radiotest | sockopen radiotest s32.myradiostream.com 8104 }
on *:sockopen:radiotest: {
sockwrite -n $sockname GET /7.html HTTP/1.0
sockwrite -n $sockname User-Agent: SHOUTcast Song Status (Mozilla Compatible)
sockwrite -n $sockname Host: $+(s32.myradiostream.com,:,8104)
sockwrite -n $sockname $crlf
}
on *:sockread:radiotest: {
if ($sockerr > 0) return
var %radiotest | sockread -fn %radiotest
if ($regex(%radiotest,/<body>(.*)<\/body>/)) {
set %radiotest.song $gettok($regml(1),7-,44)
if (%radiotest.song != %radiotest.lastsong) {
msg %radiotest.room Now playing on Radio - %radiotest.song
set %radiotest.lastsong %radiotest.song
}
}
}

 

Link to comment
Share on other sites

<bcry> its not working ... I have "Set Channel" as %#The\bMusic\bLodge and that set the room in variables and that reads exactly like this %radiotest.room %#The\bMusic\bLodge ... I have switched it on and all I am getting is radiotest msg on in the bot but nothing else ? :( the radio has been on all night and is still on now :lolwave: again thanks for you help err0r :D

Link to comment
Share on other sites

works fine for me.

 

¥1Room_Protector: :D Welcome e r r ☺ r :D
Room_Protector sets +v e r r ☺ r
radiotest msg on
<+e r r ☺ r> Now playing on Radio - Foreigner - I Don't Want To Live Without..
radiotest msg off

Link to comment
Share on other sites

:lolwave: the radio isn't streaming :shock: so how comes you got Now playing on Radio - Foreigner - I Don't Want To Live Without.. and there is me telling all my listeners to use my other radio this weekend :oops: and by the way how many hours are you behind the UK ... and again thank you for your help :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...