<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13650" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2011-04-16T07:46:46-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13650</id>

		<entry>
		<author><name><![CDATA[jaynzl]]></name></author>
		<updated>2011-04-16T07:46:46-04:00</updated>

		<published>2011-04-16T07:46:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96669#p96669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96669#p96669"/>
		<title type="html"><![CDATA[(Quit: Warning! eggdrop.conf file is missing or has errors.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96669#p96669"><![CDATA[
Anyone get an answer for this error?<br><br>Apparently happens with shoutcast1.03.tcl<br>You can reset eggdrop from new, it will run the first time without a problem. However once eggdrop disconnects or if you .rehash in the partyline bot crashes with error in the topic.<br>(Quit: Warning! eggdrop.conf file is missing or has errors. BOT shutdowned. Error: can't set "temp": variable is array)<br><br>When you try to restart ./eggdrop bot1.conf, you get the following error:<blockquote class="uncited"><div>** shoutcast.tcl v1.03 by domsen &lt;<a href="mailto:domsen@domsen.org">domsen@domsen.org</a>&gt; succesfully loaded. turn it up baby.<br>[11:00] Tcl error in file 'JukeBox-AA.conf':<br>[11:00] couldn't save command result in variable<br>    while executing<br>"catch {source eggdrop.conf} temp(config_error_info)"<br>    invoked from within<br>"set temp(config_error)   [catch {source eggdrop.conf} temp(config_error_info)]          "<br>    (file "JukeBox-AA.conf" line 49)<br>[11:00] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote>Now, if i remove shoutcast.tcl from config file and restart eggdrop , it connects without a problem, but means unable to use shoutcast.tcl of course.<br><br>Anyone else come across this issue or able to point me to another post with resolve?<br><br>Thanks in advance.<br>Jase<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11637">jaynzl</a> — Sat Apr 16, 2011 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2008-06-18T07:33:04-04:00</updated>

		<published>2008-06-18T07:33:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83612#p83612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83612#p83612"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83612#p83612"><![CDATA[
<blockquote class="uncited"><div>its the script upper the shoutcast script, but when i first load it it works now it gets that error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote><br>What error are you getting ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Wed Jun 18, 2008 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nikolamkd]]></name></author>
		<updated>2008-05-16T13:00:15-04:00</updated>

		<published>2008-05-16T13:00:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82941#p82941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82941#p82941"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82941#p82941"><![CDATA[
its the script upper the shoutcast script, but when i first load it it works now it gets that error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9921">nikolamkd</a> — Fri May 16, 2008 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-05-16T11:25:35-04:00</updated>

		<published>2008-05-16T11:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82939#p82939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82939#p82939"/>
		<title type="html"><![CDATA[Re: help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82939#p82939"><![CDATA[
<blockquote class="uncited"><div>hi can someone help me when i trying to start the bot i get this: <br>Warning! eggdrop.conf file is missing or has errors. BOT shutdowned. Error: can't set "temp": variable is array</div></blockquote>This is likely caused by a script you have loaded. It would help if you posted the entire error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 16, 2008 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-16T11:12:23-04:00</updated>

		<published>2008-05-16T11:12:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82938#p82938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82938#p82938"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82938#p82938"><![CDATA[
did you use the original eggdrop.conf and edited it properly?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Fri May 16, 2008 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nikolamkd]]></name></author>
		<updated>2008-05-16T07:15:40-04:00</updated>

		<published>2008-05-16T07:15:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82932#p82932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82932#p82932"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82932#p82932"><![CDATA[
hi can someone help me when i trying to start the bot i get this: <br>Warning! eggdrop.conf file is missing or has errors. BOT shutdowned. Error: can't set "temp": variable is array<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9921">nikolamkd</a> — Fri May 16, 2008 7:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T18:35:02-04:00</updated>

		<published>2007-06-22T18:35:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73797#p73797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73797#p73797"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73797#p73797"><![CDATA[
Use [isop] and [ishalfop] to detect if a user is oped/halfoped. Read about them in Tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2007-06-22T11:32:42-04:00</updated>

		<published>2007-06-22T11:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73790#p73790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73790#p73790"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73790#p73790"><![CDATA[
i have added the full script, maybe that helps <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri Jun 22, 2007 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-21T18:00:02-04:00</updated>

		<published>2007-06-21T18:00:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73747#p73747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73747#p73747"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73747#p73747"><![CDATA[
You've omitted part of the script, hopefully that isn't the entire thing.. I see no way for your procs to even run, nothing appears bound to them.<br>You can use <a href="http://tcl.b0rk.de/b0rked/eggdrop/html/tcl-commands/bind.html" class="postlink">binds</a> to easily accomplish your goal.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 21, 2007 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2007-09-20T11:10:51-04:00</updated>

		<published>2007-06-21T13:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73742#p73742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73742#p73742"/>
		<title type="html"><![CDATA[shoutcast [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73742#p73742"><![CDATA[
Hey all <br><br>i have some trouble with my radio.tcl. <br>I will have it to trigger only on dj's with @ and ~ of couse.<br>how can i do that i have tryed diffrent things like [isop nick chan] but get only errors <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><div class="codebox"><p>Code: </p><pre><code># config ##########################set radiochans "#chan"set adminchans ""set streamip "stream server"#set streamip "ip"#set streamip "ip"set streamport "8000"set streampass "pass"#set scstatstrigger "!stats"set scstreamtrigger "!radio"set scplayingtrigger "!sang"set sclistenertrigger "!lyttere"set scdjtrigger "!dj"set scsetdjtrigger "!setdj"set scunsetdjtrigger "!unsetdj"set scwishtrigger "!ønsk"set scgreettrigger "!hils"set schelptrigger "!radiohelp"set alertadmin "1"set doalertadmin "1"set announce "1"set urltopic "1"set ctodjc "1"set tellsongs "1"set tellusers "1"set tellbitrate "1"set advertise "0"set advertiseonlyifonline "1"set offlinetext "Så stopper radioen"#set radiotopic "..:: Velkommen til #paddysfm.dk :: Radioen er online med Non-Stop :: ::..#set topicend   "" set onlinetext "10 /stitle/ er nu online @ 9 /surl/ med 10 /bitrate/kbits"#set streamtext "9Lyt til $djnickname 3.::. 7http://$streamip:$streamport/listen.pls"set streamtext "2Lyt Med På: 4http://$streamip:$streamport/listen.pls"#set advertisetext "9Lyt med til 11 $dj  7på http://$streamip:$streamport/listen.pls"set advertisetext "11www.paddysfm.dk - Siden for dig der kan lide at bestemme hvad vi skal høre "# end of config ######################bind pub - $scstatstrigger  pub_scstat#bind msg - $scstatstrigger  msg_scstatbind pub - $scplayingtrigger  pub_playing#bind msg - $scplayingtrigger  msg_playingbind pub - $scdjtrigger  pub_dj#bind msg - $scdjtrigger  msg_djbind pub - $scsetdjtrigger  pub_setdj#bind msg - $scsetdjtrigger  msg_setdjbind pub - $scunsetdjtrigger  pub_unsetdj#bind msg - $scunsetdjtrigger  msg_unsetdjbind pub - $scwishtrigger  pub_wishbind msg - $scwishtrigger  msg_wishbind pub - $scgreettrigger  pub_greet#bind msg - $scgreettrigger  msg_greetbind pub - $scstreamtrigger pub_stream#bind msg - $scstreamtrigger msg_stream#bind pub - $sclastsongstrigger pub_lastsongs#bind msg - $sclastsongstrigger msg_lastsongsbind pub - $sclistenertrigger pub_listener#bind msg - $sclistenertrigger msg_listenerbind pub - $schelptrigger pub_help#bind msg - $schelptrigger msg_helpbind time - "* * * * *" isonlinebind time - "?0 * * * *" advertisebind nick - * djnickchangeset dj ""set surl ""set bitrate ""set stitle ""if {[file exists dj]} {set temp [open "dj" r]set dj [gets $temp]close $temp}proc shrink { calc number string start bl} { return [expr [string first "$string" $bl $start] $calc $number] }#bind pub - !settopic pfm.settopicproc pfm.settopic { nick uhost hand chan arg } {global radiotopic topicend adminchansif { [string tolower $chan] != "" } { set status [status]if { $status == 0 } {  regsub -all -- {###radio###}                    $radiotopic "04Radio" radiotopic      set topicend $arg  putserv "topic #paddysfm.dk : $radiotopic :: $arg ::.." }if { $status == 1 } {  regsub -all -- {###radio###}                    $radiotopic "09Radio" radiotopic      set topicend $arg  putserv "topic #paddysfm.dk : $radiotopic :: $arg ::.." } }bind pub - !settopictekst mwb.setofftopicproc mwb.setofftopic { nick uhost hand chan arg } {global radiotopic adminchansif { [string tolower $chan] != "#mwbstaff" } { set status [status]if { $status == 0 } {  regsub -all -- {04Radio}                    $arg "###radio###" arg}if { $status == 1 } {  regsub -all -- {09Radio}                    $arg "###radio###" arg}  set radiotopic $arg }}}proc status { } {global streamip streamport streampassif {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set streamstatus [string range $bl [shrink + 14 "&lt;STREAMSTATUS&gt;" 0 $bl] [shrink - 1 "&lt;/STREAMSTATUS&gt;" 0 $bl]]}}close $sock}if { $streamstatus == "1" } { return 1 } else { return 0 }}proc poststuff { mode text } {global radiochans djset curlist "0"set curhigh "0"set surl ""set cursong ""set sgenre ""set bitrate "0"set stitle ""set temp [open "isonline" r]while {[eof $temp] != 1} {set zeile [gets $temp]if {[string first "curlist:" $zeile] != -1 } { set curlist $zeile }if {[string first "curhigh:" $zeile] != -1 } { set curhigh $zeile }if {[string first "cursong:" $zeile] != -1 } { set cursong [lrange $zeile 1 [llength $zeile]]] }if {[string first "sgenre:" $zeile] != -1 } { set sgenre [lrange $zeile 1 [llength $zeile]]}if {[string first "serverurl:" $zeile] != -1 } { set surl [lindex $zeile 1] }if {[string first "bitrate:" $zeile] != -1 } { set bitrate [lindex $zeile 1] }if {[string first "stitle:" $zeile] != -1 } { set stitle [lindex $zeile 1] }}close $tempregsub -all "/stitle/" $text "$stitle" textregsub -all "/curlist/" $text "$curlist" textregsub -all "/curhigh/" $text "$curhigh" textregsub -all "/cursong/" $text "$cursong" textregsub -all "/sgenre/" $text "$sgenre" textregsub -all "/surl/" $text "$surl" textregsub -all "/bitrate/" $text "$bitrate" textregsub -all "/dj/" $text "$dj" textforeach chan [channels] {if {$radiochans == "" } { putserv "$mode $chan :$text" }if {$radiochans != "" } {if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1)} {putserv "$mode $chan :$text"}}}}proc schelp { target } {global scstatstrigger scstreamtrigger scplayingtrigger scdjtrigger sclastsongstrigger scwishtrigger scgreettrigger sclistenertriggerputserv "notice $target :2$scstreamtrigger - 2$scplayingtrigger - 2$scdjtrigger - 2$scwishtrigger - 2$scgreettrigger - 2$sclistenertrigger"}proc pub_help {nick uhost hand chan arg} {global radiochansif {$radiochans == "" } { schelp $nick }if {$radiochans != "" } {if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { schelp $nick}}}proc advertise { nick uhost hand chan arg } {global advertisetext advertise advertiseonlyifonlineif {$advertise == "1" &amp;&amp; $advertiseonlyifonline == "0"} { poststuff privmsg "$advertisetext" }if {$advertise == "1" &amp;&amp; $advertiseonlyifonline == "1" &amp;&amp; [status] == 1} { poststuff privmsg "$advertisetext" }}proc setdj {nickname djnickname } {global streamip streamport streampass dj ctodjcif {$djnickname == "" } { set djnickname $nickname } putlog "shoutcast: new dj: $djnickname ($nickname)"set temp [open "dj" w+]puts $temp $djnicknameclose $tempset temp [open "djnick" w+]puts $temp $djnicknameclose $tempset temp [open "djnick" w+]puts $temp $djnicknameclose $tempif { [status] == "1" } { poststuff privmsg "2Ny vært er på radioen" poststuff privmsg "2Tag Godt Imod: 4$djnickname "if { $ctodjc == "1" }  {set temp [open "isonline" r]while {[eof $temp] != 1} {set zeile [gets $temp]if {[string first "isonline:" $zeile] != -1 } { set oldisonline $zeile }if {[string first "curlist:" $zeile] != -1 } { set oldcurlist $zeile }if {[string first "curhigh:" $zeile] != -1 } { set oldcurhigh $zeile }if {[string first "cursong:" $zeile] != -1 } { set oldsong $zeile }if {[string first "bitrate:" $zeile] != -1 } { set oldbitrate $zeile }}close $temp}} else {putserv "privmsg $nickname :9this has not been announced because the radio is currentlfy offline." }}proc msg_setdj { nick uhost hand arg } { setdj $nick $arg }proc pub_setdj { nick uhost hand chan arg } { global adminchans; if {([lsearch -exact [string tolower $adminchans] [string tolower $chan]] != -1) || ($adminchans == "")} { setdj $nick $arg }}proc unsetdj { nick } {global djset dj ""file delete djputserv "notice $nick :dj deleted"}proc msg_unsetdj { nick uhost hand arg } { unsetdj $nick }proc pub_unsetdj { nick uhost hand chan arg } { global adminchans; if {([lsearch -exact [string tolower $adminchans] [string tolower $chan]] != -1) || ($adminchans == "")} { unsetdj $nick }}proc listener { target } {global streamip streamport streampassputlog "shoutcast: $target requested listener count"if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set repl [string range $bl [shrink + 19 "&lt;REPORTEDLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/REPORTEDLISTENERS&gt;" 0 $bl]]set curhigh [string range $bl [shrink + 15 "&lt;PEAKLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/PEAKLISTENERS&gt;" 0 $bl]]set max [string range $bl [shrink + 14 "&lt;MAXLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/MAXLISTENERS&gt;" 0 $bl]]set avgtime [string range $bl [shrink + 13 "&lt;AVERAGETIME&gt;" 0 $bl] [shrink - 1 "&lt;/AVERAGETIME&gt;" 0 $bl]]}}close $sockputserv "privmsg $target : 2PaddysFM Lyttere: 4 $repl / $curhigh "}}proc msg_listener { nick uhost hand arg } { listener $nick }proc pub_listener { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { listener $chan }}proc wish { nick arg } {if {$arg == ""} { putserv "notice $nick :you forgot to add your wish"; return 0}if { [status] == "1" } {set temp [open "djnick" r]set djnick [gets $temp]close $tempputserv "privmsg $djnick :(WISH) - $nick - $arg"putserv "notice $nick : Dit ønske er sendt til den nuværende DJ"} else {putserv "notice $nick :Radioen er pt offline" }}proc msg_wish { nick uhost hand arg } { wish $nick $arg }proc pub_wish { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { wish $nick $arg }}proc sclastsongs { target } {global streamip streamport streampassputlog "shoutcast: $target requested songhistory"if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set songs [string range $bl [string first "&lt;TITLE&gt;" $bl] [expr [string last "&lt;/TITLE&gt;" $bl] + 7]]regsub -all "&lt;" $songs "&lt;" songsregsub -all "&gt;" $songs "&gt;" songsregsub -all "&amp;" $songs "+" songsregsub -all """ $songs "\"" songsregsub -all "'" $songs "'" songsregsub -all "ÿ" $songs "" songsregsub -all "&lt;TITLE&gt;" $songs "(" songsregsub -all "&lt;/TITLE&gt;" $songs ")" songsregsub -all "&lt;SONG&gt;" $songs "" songsregsub -all "&lt;/SONG&gt;" $songs " - " songsregsub -all "&lt;PLAYEDAT&gt;" $songs "" songsregsub -all "&lt;/PLAYEDAT&gt;" $songs "" songsregsub -all {\d} $songs "" songsregsub -all "&amp;#xB;" $songs "´" songsregsub -all "&amp;#x96;" $songs "-" songsregsub -all "ö" $songs "ö" songsregsub -all "ä" $songs "ä" songsregsub -all "ü" $songs "ü" songsregsub -all "Ö" $songs "Ö" songsregsub -all "Ä" $songs "Ä" songsregsub -all "Ü" $songs "Ü" songsregsub -all "ß" $songs "ß" songsregsub -all "&amp;#xE;" $songs "å" songsregsub -all "&amp;#xE;" $songs "æ" songsregsub -all "&amp;#xF;" $songs "ø" songs}}close $sockputserv "notice $target :$songs"}}proc msg_lastsongs { nick uhost hand arg } { sclastsongs $nick }proc pub_lastsongs { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { sclastsongs $nick }}proc scstream { target } {global streamip streamport streamtextputlog "shoutcast: streaminfo requested by $target"putserv "notice $target :$streamtext"}proc msg_stream { nick uhost hand arg } { scstream $nick }proc pub_stream { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { scstream $nick }}proc scgreet { nick arg } {if {$arg == ""} { putserv "notice $nick :you forgot to add your greetmessage"; return 0}if { [status] == "1" } {set temp [open "djnick" r]set djnick [gets $temp]close $tempputserv "privmsg $djnick :(GREET) - $nick - $arg"} else {putserv "notice $nick :Radioen er pt offline" }}proc msg_greet { nick uhost hand arg } { scgreet $nick $arg }proc pub_greet { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { scgreet $nick $arg }}proc djnickchange { oldnick uhost hand chan newnick } {set temp [open "djnick" r]set djnick [gets $temp]close $tempif {$oldnick == $djnick} {putlog "shoutcast: dj nickchange $oldnick -&gt; $newnick"set temp [open "djnick" w+]puts $temp $newnickclose $temp}}proc dj { target } {global streamip streamport streampass djputlog "shoutcast: $target asked for dj info"if {[status] == 1} {if {[file exists dj]} {set temp [open "dj" r]set dj [gets $temp]close $tempputserv "privmsg $target :2Lige Nu:  4$dj "} else { putserv "notice $target :dj'en er offline" }} else { putserv "notice $target :Radioen er pt offline" }}proc msg_dj { nick uhost hand arg } { dj $nick"}proc pub_dj { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { dj $chan  }}proc scstat {target} {global streamip streamport streampassputlog "shoutcast: $target asked for serverstats"if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set streamstatus [string range $bl [shrink + 14 "&lt;STREAMSTATUS&gt;" 0 $bl] [shrink - 1 "&lt;/STREAMSTATUS&gt;" 0 $bl]]set repl [string range $bl [shrink + 19 "&lt;REPORTEDLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/REPORTEDLISTENERS&gt;" 0 $bl]]set curhigh [string range $bl [shrink + 15 "&lt;PEAKLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/PEAKLISTENERS&gt;" 0 $bl]]set currentl [string range $bl [shrink + 18 "&lt;CURRENTLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/CURRENTLISTENERS&gt;" 0 $bl]]set surl [string range $bl [shrink + 11 "&lt;SERVERURL&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERURL&gt;" 0 $bl]]set maxl [string range $bl [shrink + 14 "&lt;MAXLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/MAXLISTENERS&gt;" 0 $bl]]set bitrate [string range $bl [shrink + 9 "&lt;BITRATE&gt;" 0 $bl] [shrink - 1 "&lt;/BITRATE&gt;" 0 $bl]]set stitle [string range $bl [shrink + 13 "&lt;SERVERTITLE&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERTITLE&gt;" 0 $bl]]set sgenre [string range $bl [shrink + 13 "&lt;SERVERGENRE&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERGENRE&gt;" 0 $bl]]if {$sgenre != ""} {set sgenre " ($sgenre)"}set avgtime [string range $bl [shrink + 13 "&lt;AVERAGETIME&gt;" 0 $bl] [shrink - 1 "&lt;/AVERAGETIME&gt;" 0 $bl]]set irc [string range $bl [shrink + 5 "&lt;IRC&gt;" 0 $bl] [shrink - 1 "&lt;/IRC&gt;" 0 $bl]]set icq [string range $bl [shrink + 5 "&lt;ICQ&gt;" 0 $bl] [shrink - 1 "&lt;/ICQ&gt;" 0 $bl]]if {$icq == 0} { set icq "N/A" }set aim [string range $bl [shrink + 5 "&lt;AIM&gt;" 0 $bl] [shrink - 1 "&lt;/AIM&gt;" 0 $bl]]set webhits [string range $bl [shrink + 9 "&lt;WEBHITS&gt;" 0 $bl] [shrink - 1 "&lt;/WEBHITS&gt;" 0 $bl]]set streamhits [string range $bl [shrink + 12 "&lt;STREAMHITS&gt;" 0 $bl] [shrink - 1 "&lt;/STREAMHITS&gt;" 0 $bl]]set version [string range $bl [shrink + 9 "&lt;VERSION&gt;" 0 $bl] [shrink - 1 "&lt;/VERSION&gt;" 0 $bl]]regsub -all "å" $sgenre "å" sgenreregsub -all "æ" $sgenre "æ" sgenreregsub -all "ø" $sgenre "ø" sgenreregsub -all "å" $stitle "å" stitleregsub -all "æ" $stitle "æ" stitleregsub -all "ø" $stitle "ø" stitleif {$streamstatus == 1} {if {[file exists dj]} {set temp [open "dj" r]set dj [gets $temp]close $temp} else { set dj "none" }#putserv "notice $target :$stitle$sgenre is online, running shoutcast $version and streaming at $bitrate kbps,  your dj is $dj. please visit $surl"#} else {#putserv "notice $target :$stitle$sgenre is currenty offline, running shoutcast $version and streaming at $bitrate kbps, check out $surl" }#putserv "notice $target :there are currently $repl unique people listening, the listener maximum is $maxl, our user peak was at $curhigh listeners."#putserv "notice $target :the average user is listening $avgtime seconds, our stream had $webhits webhits and $streamhits streamhits."}}close $sock}}proc msg_scstat { nick uhost hand arg } { scstat $nick}proc pub_scstat { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { scstat $nick  }}proc playing {target} {global streamip streamport streampass djputlog "shoutcast: $target asked for current song"if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set streamstatus [string range $bl [shrink + 14 "&lt;STREAMSTATUS&gt;" 0 $bl] [shrink - 1 "&lt;/STREAMSTATUS&gt;" 0 $bl]]set songtitle [string range $bl [shrink + 11 "&lt;SONGTITLE" 0 $bl] [shrink - 1 "&lt;/SONGTITLE&gt;" 0 $bl]]set songurl [string range $bl [shrink + 9 "&lt;SONGURL&gt;" 0 $bl] [shrink - 1 "&lt;/SONGURL&gt;" 0 $bl]]if {$songurl != ""} { set songurl " ($songurl)"}regsub -all "&lt;" $songtitle "&lt;" songtitleregsub -all "&gt;" $songtitle "&gt;" songtitleregsub -all "&amp;" $songtitle "+" songtitle regsub -all """ $songtitle "\"" songtitleregsub -all "'" $songtitle "'" songtitleregsub -all "ÿ" $songtitle "" songtitleregsub -all "´" $songtitle "´" songtitleregsub -all "&amp;#x96;" $songtitle "-" songtitleregsub -all "ö" $songtitle "ö" songtitleregsub -all "ä" $songtitle "ä" songtitleregsub -all "ü" $songtitle "ü" songtitleregsub -all "Ö" $songtitle "Ö" songtitleregsub -all "Ä" $songtitle "Ä" songtitleregsub -all "Ü" $songtitle "Ü" songtitleregsub -all "ß" $songtitle "ß" songtitleregsub -all "å" $songtitle "å" songtitleregsub -all "æ" $songtitle "æ" songtitleregsub -all "ø" $songtitle "ø" songtitleif {$streamstatus == 1} {#putserv "privmsg $target :9Lige nu spilles: $songtitle$songurl"#putserv "privmsg $target :9Lige nu spilles: 7$songtitle 9"putserv "privmsg $target :2Lige Nu: 4 $songtitle "} else {putserv "notice $target :server is currently offline, sorry"}}}close $sock}}proc msg_playing { nick uhost hand arg } { playing $nick}proc pub_playing { nick uhost hand chan arg } { global radiochans; if {([lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { playing $chan  }}proc isonline { nick uhost hand chan arg } {global radiochans announce tellusers tellsongs tellbitrate urltopic djglobal offlinetext onlinetext radiotopic topicendglobal streamip streampass streamport djglobal doalertadmin alertadminif {$announce == 1 || $tellsongs == 1 || $tellusers == 1 || $tellbitrate == 1} {set isonlinefile "isonline"set oldisonline "isonline: 0"set oldcurlist "curlist: 0"set oldcurhigh "curhigh: 0"set oldsong "cursong: 0"set oldbitrate "bitrate: 0"if {[file exists $isonlinefile]} {putlog "shoutcast: checking if stream is online"set temp [open "isonline" r]while {[eof $temp] != 1} {set zeile [gets $temp]if {[string first "isonline:" $zeile] != -1 } { set oldisonline $zeile }if {[string first "curlist:" $zeile] != -1 } { set oldcurlist $zeile }if {[string first "curhigh:" $zeile] != -1 } { set oldcurhigh $zeile }if {[string first "cursong:" $zeile] != -1 } { set oldsong $zeile }if {[string first "bitrate:" $zeile] != -1 } { set oldbitrate $zeile }}close $temp}if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0} else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set streamstatus "isonline: [string range $bl [shrink + 14 "&lt;STREAMSTATUS&gt;" 0 $bl] [shrink - 1 "&lt;/STREAMSTATUS&gt;" 0 $bl]]"set repl "curlist: [string range $bl [shrink + 19 "&lt;REPORTEDLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/REPORTEDLISTENERS&gt;" 0 $bl]]"set curhigh "curhigh: [string range $bl [shrink + 15 "&lt;PEAKLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/PEAKLISTENERS&gt;" 0 $bl]]"set currentl [string range $bl [shrink + 18 "&lt;CURRENTLISTENERS&gt;" 0 $bl] [shrink - 1 "&lt;/CURRENTLISTENERS&gt;" 0 $bl]]set surl "serverurl: [string range $bl [shrink + 11 "&lt;SERVERURL&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERURL&gt;" 0 $bl]]"set cursong "cursong: [string range $bl [shrink + 11 "&lt;SONGTITLE" 0 $bl] [shrink - 1 "&lt;/SONGTITLE&gt;" 0 $bl]]"set songurl [string range $bl [shrink + 9 "&lt;SONGURL&gt;" 0 $bl] [shrink - 1 "&lt;/SONGURL&gt;" 0 $bl]]set bitrate "bitrate: [string range $bl [shrink + 9 "&lt;BITRATE&gt;" 0 $bl] [shrink - 1 "&lt;/BITRATE&gt;" 0 $bl]]"set stitle "stitle: [string range $bl [shrink + 13 "&lt;SERVERTITLE&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERTITLE&gt;" 0 $bl]]"set sgenre "sgenre: [string range $bl [shrink + 13 "&lt;SERVERGENRE&gt;" 0 $bl] [shrink - 1 "&lt;/SERVERGENRE&gt;" 0 $bl]]"}}close $sock}set temp [open "isonline" w+]puts $temp "$streamstatus\n$repl\n$curhigh\n$cursong\n$bitrate\n$stitle\n$sgenre\n$surl"close $tempif {$announce == 1 } {if {$streamstatus == "isonline: 0" &amp;&amp; $oldisonline == "isonline: 1"} {   poststuff privmsg $offlinetext   if {$doalertadmin == "1"} { sendnote domsen $alertadmin "radio is now offline" }   if {$urltopic == 1} {    regsub -all -- {09Radio}                    $radiotopic "04Radio" radiotopic   regsub -all -- {###radio###}                  $radiotopic "04Radio" radiotopic   poststuff topic "$radiotopic :: $topicend ::.."    }}if {$streamstatus == "isonline: 1" &amp;&amp; $oldisonline == "isonline: 0" } {   if {$sgenre != ""} {   set sgenre " ([lrange $sgenre 1 [llength $sgenre]] )"   }   poststuff privmsg "$onlinetext"   if {$urltopic == 1} {    regsub -all -- {04Radio}                    $radiotopic "09Radio" radiotopic   regsub -all -- {###radio###}                  $radiotopic "09Radio" radiotopic   poststuff topic "$radiotopic :: $topicend ::.."   }}}if {($tellusers == 1) &amp;&amp; ($streamstatus == "isonline: 1") &amp;&amp; ($oldcurhigh != "curhigh: 0") } {if {$oldcurhigh != $curhigh} {poststuff privmsg "Lytter max er: [lindex $curhigh 1]"}if {$oldcurlist != $repl} {#poststuff privmsg "9Pirate Hits Radio lyttere: $currentl"}}if {($tellsongs == 1) &amp;&amp; ($oldsong != $cursong) &amp;&amp; ($streamstatus == "isonline: 1") } {if {$songurl != ""} { set songurl " ($songurl)"}regsub -all "&lt;" $cursong "&lt;" cursongregsub -all "&gt;" $cursong "&gt;" cursongregsub -all "&amp;" $cursong "+" cursong regsub -all """ $cursong "\"" cursongregsub -all "'" $cursong "'" cursongregsub -all "ÿ" $cursong "" cursongregsub -all "´" $cursong "´" cursongregsub -all "&amp;#x96;" $cursong "-" cursongregsub -all "ö" $cursong "ö" cursongregsub -all "ä" $cursong "ä" cursongregsub -all "ü" $cursong "ü" cursongregsub -all "Ö" $cursong "Ö" cursongregsub -all "Ä" $cursong "Ä" cursongregsub -all "Ü" $cursong "Ü" cursongregsub -all "ß" $cursong "ß" cursongregsub -all "å" $cursong "å" cursongregsub -all "æ" $cursong "æ" cursongregsub -all "ø" $cursong "ø" cursongputlog $cursong#poststuff privmsg "9Paddysfm spiller: [lrange $cursong 1 [llength $cursong]]$songurl"poststuff privmsg "10DJ 10spiller: 9[lrange $cursong 1 [llength $cursong]]10 @ http://193.201.54.28:8000/listen.pls"}if {($tellbitrate == 1) &amp;&amp; ($oldbitrate != $bitrate) &amp;&amp; ($streamstatus == "isonline: 1") &amp;&amp; ($oldbitrate != "bitrate: 0")} {poststuff privmsg "bitrate switched to [lindex $bitrate 1]kbps"}}}</code></pre></div>*EDIT* i have edited the script so the whole thing is here <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>Thanks in advance<br>Fire-Fox<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Thu Jun 21, 2007 1:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
