set radio_url "http://discopink.ch/sc_text2.php"
set time 1
set chan "#RadioPink"
if {![info exists ald]} {
set ald 1
timer $time radio_get
}
proc radio_get {} {
global radio_url
global thetext a chan time text
set file [open "|lynx -source $radio_url" r]
set html "[gets $file]"
regsub -all "<br>" $html " " html
regsub -all "<html>" $html " " html
regsub -all "<font color=#333333>" $html " " html
regsub -all "</font>" $html " " html
regsub -all "<\[^b]{0,1}b{0,1}>" $html "" html
regsub "text1=" $html "" html
regsub "NOW PLAYING:" $html "Now on http://viptrend.com:8002/listen.pls playing \002" html
putchan $chan $html
putserv "privmsg $chan Radio: http://viptrend.com:8002/listen.pls"
timer $time radio_get
}
you can embed mIRC colors in output text using the color escape character \003; check mIRC's docs for color code combinations; for example, this would be red on yellow: