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

	<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-07-02T07:02:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-07-02T07:02:40-04:00</updated>

		<published>2006-07-02T07:02:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64468#p64468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64468#p64468"/>
		<title type="html"><![CDATA[heh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64468#p64468"><![CDATA[
Dude im still learning, all feedback good or bad is welcome, thanks <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=6839">NTHosts</a> — Sun Jul 02, 2006 7:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-06-29T02:23:58-04:00</updated>

		<published>2006-06-29T02:23:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64420#p64420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64420#p64420"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64420#p64420"><![CDATA[
This script makes absolutely no sense at all.<br>It looks like you have no idea what you're doing if i read this.<br><br>I would advise you to use the http module anyway, i've found it to be much easier and better then egghttp.<br><br>Hint: You might want to try to call the topic_update with an actual socket, right now your script just loops by getting the website over and over (if i read it right)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Jun 29, 2006 2:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T15:19:13-04:00</updated>

		<published>2006-06-28T15:19:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64406#p64406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64406#p64406"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64406#p64406"><![CDATA[
Someone slap me lol, i hadnt set url or anything<br>derrrrrr<br><br>Anyway, the script now looks like this..<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !test2 test2proc test2 {nick uhost handle chan arg} {   putquick "privmsg #Help :5"   putquick "privmsg #Help :4"   putquick "privmsg #Help :3"   putquick "privmsg #Help :2"   putquick "privmsg #Help :1"   putquick "privmsg #Help :!kicksrc"   putquick "privmsg #Help :Please Connect Now !"utimer 10 [list topic_update sock]}set url "http://www.lynxfm.info/stream.html"proc topic_update {sock} {  global url    set headers [egghttp:headers $sock]    set topic [egghttp:data $sock]    set topic1 [egghttp:data $sock]    set sock [egghttp:geturl $url topic_update]    return 1    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;} $topic "" dj    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;} $topic1 - djnick    putquick "topic #LynxFM :\0030,12 ~ This Is LynxFM -|- The current DJ is: $dj ~ "    putquick "privmsg operserv :svsnick $djnick $djnick|On-Air"  }</code></pre></div>and now gives the error..<br><br>ntIRC Currently: can't read "egghttp(9,body)": no such element in array<br>ntIRC Currently:     while executing<br>ntIRC Currently: "if {![string match "*&lt;*" $input] &amp;&amp; ($egghttp($sock,body) == "")} {<br>ntIRC Currently:     append egghttp($sock,headers) "$input\n"<br>ntIRC Currently:     if {[string match "*HTTP/*" $inpu..."<br>ntIRC Currently:     (procedure "egghttp:control" line 18)<br>ntIRC Currently:     invoked from within<br>ntIRC Currently: "egghttp:control $_n $_a"<br><br>Anyone have any idea what that means ??<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-28T14:23:03-04:00</updated>

		<published>2006-06-28T14:23:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64401#p64401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64401#p64401"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64401#p64401"><![CDATA[
the regexp simply does not match, check the syntax against the source. There are even tools out there to test regular expression, if you are not familar enough with them to match them with your brain <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=2382">De Kus</a> — Wed Jun 28, 2006 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T14:20:01-04:00</updated>

		<published>2006-06-28T14:20:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64400#p64400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64400#p64400"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64400#p64400"><![CDATA[
That was there, just missed it when putting it in the forum sorry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <br>I tried using the others you said but didnt' work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 2:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-28T13:42:45-04:00</updated>

		<published>2006-06-28T13:42:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64396#p64396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64396#p64396"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64396#p64396"><![CDATA[
you are missing the extra argument in the first regexp, add something like - or "" or {} before 'dj'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Jun 28, 2006 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T13:24:27-04:00</updated>

		<published>2006-06-28T13:24:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64393#p64393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64393#p64393"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64393#p64393"><![CDATA[
anyone ? :-/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T07:15:35-04:00</updated>

		<published>2006-06-28T07:15:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64386#p64386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64386#p64386"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64386#p64386"><![CDATA[
Ok that 'seems' to have fixed that, but now I get the error..<br><br>Tcl error in script for 'timer9':<br>can't read "dj": no such variable<br><br>But dj is clearly there lol, here's the whole script now..<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !test2 test2proc test2 {nick uhost handle chan arg} {   putquick "privmsg #Help :5"   putquick "privmsg #Help :4"   putquick "privmsg #Help :3"   putquick "privmsg #Help :2"   putquick "privmsg #Help :1"   putquick "privmsg #Help :!kicksrc"   putquick "privmsg #Help :Please Connect Now !"utimer 10 [list topic_update sock]}proc topic_update {sock} {    set headers [egghttp:headers $sock]    set topic [egghttp:data $sock]    #set topic1 [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;} $topic dj    #regexp { &lt;td height="39" valign="top" id="description"&gt;&lt;font color="white" face="verdana" size="2"&gt;(.*)-} $topic1 - djnick    putquick "topic #LynxFM :\0030,12 ~ This Is LynxFM -|- The current DJ is: $dj ~ "    #putquick "privmsg operserv :svsnick $djnick $djnick|On-Air"  }</code></pre></div>Any ideas ?<br>Sorry if i'm being thick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 7:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-06-28T07:01:19-04:00</updated>

		<published>2006-06-28T07:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64384#p64384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64384#p64384"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64384#p64384"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer 10 [list topic_update $sock]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jun 28, 2006 7:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T06:59:31-04:00</updated>

		<published>2006-06-28T06:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64382#p64382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64382#p64382"/>
		<title type="html"><![CDATA[right...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64382#p64382"><![CDATA[
When I add it like <br><div class="codebox"><p>Code: </p><pre><code>utimer 10 topic_update {sock}</code></pre></div>I get..<br><br>Tcl error [test2]: wrong # args: should be "utimer seconds command"<br><br>So i remove the arg {sock} then i get this..<br><br>Tcl error in script for 'timer8':<br>wrong # args: should be "topic_update sock"<br><br>Im very confused as to what i need to do now  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-06-28T06:15:46-04:00</updated>

		<published>2006-06-28T06:15:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64380#p64380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64380#p64380"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64380#p64380"><![CDATA[
he said the utimer 30 line, not just utimer 30.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jun 28, 2006 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-28T05:42:31-04:00</updated>

		<published>2006-06-28T05:42:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64379#p64379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64379#p64379"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64379#p64379"><![CDATA[
Dude that dont work.. i get this from .set errorInfo..<br><br>ntIRC Currently: wrong # args: should be "utimer seconds command"<br>ntIRC Currently:     while executing<br>ntIRC Currently: "utimer 30"<br>ntIRC Currently:     (procedure "test2" line 20)<br>ntIRC Currently:     invoked from within<br>ntIRC Currently: "test2 $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"<br><br>Im lost lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Wed Jun 28, 2006 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-06-27T17:40:54-04:00</updated>

		<published>2006-06-27T17:40:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64363#p64363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64363#p64363"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64363#p64363"><![CDATA[
no.. if you want it to get called 30 seconds after it finishes, paste the utimer 30 line after the last line in proc test2<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue Jun 27, 2006 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-27T17:29:04-04:00</updated>

		<published>2006-06-27T17:29:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64362#p64362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64362#p64362"/>
		<title type="html"><![CDATA[..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64362#p64362"><![CDATA[
will that make it call the second proc 30 seconds after it completes the first tho ?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Tue Jun 27, 2006 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-06-27T16:19:35-04:00</updated>

		<published>2006-06-27T16:19:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64360#p64360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64360#p64360"/>
		<title type="html"><![CDATA[Can anyone tell me where I went wrong ? :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64360#p64360"><![CDATA[
you shouldn't declare the proc inside the utimer, you should just call it then<div class="codebox"><p>Code: </p><pre><code>proc topic_update {sock} {     set headers [egghttp:headers $sock]     set topic [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;} $topic - dj     putquick "topic #LynxFM :\0030,12 ~ This Is LynxFM -|- The current DJ is: $dj ~ "     #putquick "privmsg operserv :svsnick $djnick $djnick|On-Air"   } utimer 30 topic_update &lt;your arg here&gt;</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue Jun 27, 2006 4:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
