<?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/11953" />

	<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>2006-06-05T16:26:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-05T16:26:14-04:00</updated>

		<published>2006-06-05T16:26:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63742#p63742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63742#p63742"/>
		<title type="html"><![CDATA[hehe]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63742#p63742"><![CDATA[
Thanks, works perfect.. I shoulda guessed that myself eh <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Oh well another day gone and a little bit more learnt <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> thanks again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Mon Jun 05, 2006 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-06-05T15:18:21-04:00</updated>

		<published>2006-06-05T15:18:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63741#p63741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63741#p63741"/>
		<title type="html"><![CDATA[\n dosnt' work :s]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63741#p63741"><![CDATA[
split that last puthelp:<br><div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $channel :\0032\004Current Status:"puthelp "PRIVMSG $channel :\0034 The current DJ is:$dj"puthelp "PRIVMSG $channel :The current track is: $track"puthelp "PRIVMSG $channel :With listeners: $listeners"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Mon Jun 05, 2006 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-05T11:20:24-04:00</updated>

		<published>2006-06-05T11:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63739#p63739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63739#p63739"/>
		<title type="html"><![CDATA[\n dosnt' work :s]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63739#p63739"><![CDATA[
Ok i have managed to get this far, most of this script works but on the last function for some reason \n isnt' working, it says the first line and thats it... here's the code..<br><div class="codebox"><p>Code: </p><pre><code>set url "http://www.lynxfm.info/stream.html"set djtrigger "!dj"set tracktrigger "!track"set listenerstrigger "!listeners"set alltrigger "!all"set channel "#LynxFM"### Current DJ ###if {![info exists egghttp(version)]} {  putlog "egghttp.tcl was NOT successfully loaded."  putlog "shoutcast.tcl has not been loaded as a result."} else {  proc current_dj {sock} {    global channel    set headers [egghttp:headers $sock]    set body [egghttp:data $sock]    regexp { &lt;td height="39" valign="top" id="description"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*)&lt;/font&gt;&lt;/tr&gt;} $body - dj    puthelp "PRIVMSG $channel :\0032\004The current DJ is: \0034$dj"  }  bind pub -|* $djtrigger top:djtrigger  proc top:djtrigger {nick host hand chan text} {    global url    set sock [egghttp:geturl $url current_dj]    return 1  }### Current Track ###proc current_track {sock} {    global channel    set headers [egghttp:headers $sock]    set body1 [egghttp:data $sock]    regexp {&lt;td height="39" valign="top" id="song"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*?)&lt;/font&gt;&lt;/td&gt;} $body1 - track    puthelp "PRIVMSG $channel :\0032\004The current Track is: \0034 $track"  }  bind pub -|* $tracktrigger top:tracktrigger  proc top:tracktrigger {nick host hand chan text} {    global url    set sock [egghttp:geturl $url current_track]    return 1  }### Current Listeners ###proc current_listeners {sock} {    global channel    set headers [egghttp:headers $sock]    set body2 [egghttp:data $sock]    regexp {&lt;td height="21" valign="top" id="listeners"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*?)&lt;/font&gt;&lt;/td&gt;} $body2 - listeners    puthelp "PRIVMSG $channel :\0032\004Current Listeners: \0034 $listeners"  }  bind pub -|* $listenerstrigger top:listenerstrigger  proc top:listenerstrigger {nick host hand chan text} {    global url    set sock [egghttp:geturl $url current_listeners]    return 1  }### All Stats ###proc show_all {sock} {    global channel    set headers [egghttp:headers $sock]    set all1 [egghttp:data $sock]    set all2 [egghttp:data $sock]    set all3 [egghttp:data $sock]    regexp { &lt;td height="39" valign="top" id="description"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*)&lt;/font&gt;&lt;/tr&gt;} $all1 - dj    regexp {&lt;td height="39" valign="top" id="song"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*?)&lt;/font&gt;&lt;/td&gt;} $all2 - track    regexp {&lt;td height="21" valign="top" id="listeners"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*?)&lt;/font&gt;&lt;/td&gt;} $all3 - listeners    puthelp "PRIVMSG $channel :\0032\004Current Status:\n \0034 The current DJ is:$dj \n The current track is: $track \n With listeners: $listeners"  }  bind pub -|* $alltrigger top:alltrigger  proc top:alltrigger {nick host hand chan text} {    global url    set sock [egghttp:geturl $url show_all]    return 1  } putlog "shoutcast.tcl has been successfully loaded."}</code></pre></div>Any thoughts ? <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=6839">NTHosts</a> — Mon Jun 05, 2006 11:20 am</p><hr />
]]></content>
	</entry>
	</feed>
