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

	<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>2008-04-24T19:38:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-24T19:38:22-04:00</updated>

		<published>2008-04-24T19:38:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82527#p82527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82527#p82527"/>
		<title type="html"><![CDATA[Quick question regaurding timers..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82527#p82527"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "?0 *" display:songbind time - "?5 *" display:songproc display:song args { global url streamch set streamch [string tolower $streamch] ::http::config -useragent "Mozilla/5.0; Shoutinfo" set http_req [::http::geturl $url -timeout 2000] if {[::http::status $http_req] != "ok"} {  puthelp "PRIVMSG $streamch :Stream is unavailable"; } set data [::http::data $http_req] ::http::cleanup $http_req if {[regexp {&lt;font class=default&gt;Current Song: &lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font class=default&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;} $data x title]} {  puthelp "PRIVMSG $streamch :\002Current Song\002: $title" } else {  puthelp "PRIVMSG $streamch :Couldn't receive any information, checking server status..." } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Apr 24, 2008 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-04-24T19:21:46-04:00</updated>

		<published>2008-04-24T19:21:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82526#p82526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82526#p82526"/>
		<title type="html"><![CDATA[Quick question regaurding timers..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82526#p82526"><![CDATA[
I am trying to modify an existing script, right now it requires the command !song to be typed in the channel, I want to change it to just display the current song every 5 minutes.. the code is:<br><br>bind pub -|- !song get_shoutcast_song<br>bind pub -|- !np get_shoutcast_song<br>proc get_shoutcast_song {nick uhost hand chan arg} {<br>   global url streamch<br>   set streamch [string tolower $streamch]<br>   ::http::config -useragent "Mozilla/5.0; Shoutinfo"<br>   if {[string tolower $chan] == "$streamch"} {<br>        set http_req [::http::geturl $url -timeout 2000]<br>        if {[::http::status $http_req] != "ok"} {<br>                puthelp "PRIVMSG $chan :Stream is unavailable";<br>        }<br>        set data [::http::data $http_req]<br>        ::http::cleanup $http_req<br>        if {[regexp {&lt;font class=default&gt;Current Song: &lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font class=default&gt;&lt;b&gt;([^&lt;]+)&lt;/b&gt;} $data x title]} {<br>                puthelp "PRIVMSG $chan :\002Current Song\002: $title"<br>        } else {<br>                puthelp "PRIVMSG $chan :Couldn't receive any information, checking server status..."<br>                get_shoutcast_server $nick $uhost $hand $chan $arg<br>        }<br>   }<br>}<br><br><br><br>Any help is appreciated :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Thu Apr 24, 2008 7:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
