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 ![]()
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
}
}
}
Get information about ircWx here
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
again thanks for you help err0r ![]()
works fine for me.
¥1Room_Protector:
Welcome e r r ☺ r ![]()
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
Get information about ircWx here
Sign in to reply or start a new topic where your account has permission.