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

	<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>2013-06-23T10:40:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-06-23T10:40:38-04:00</updated>

		<published>2013-06-23T10:40:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101726#p101726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101726#p101726"/>
		<title type="html"><![CDATA[help tdom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101726#p101726"><![CDATA[
Have you verified that your XPath expression actually returns any nodes at all? To me, it would seem that "$root selectNodes" returns an empty list, which is why the node-command appears as "" later on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jun 23, 2013 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-06-23T00:20:51-04:00</updated>

		<published>2013-06-23T00:20:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101725#p101725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101725#p101725"/>
		<title type="html"><![CDATA[help tdom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101725#p101725"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$today != [string trim [$game asText]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Jun 23, 2013 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-06-22T18:09:52-04:00</updated>

		<published>2013-06-22T18:09:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101724#p101724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101724#p101724"/>
		<title type="html"><![CDATA[help tdom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101724#p101724"><![CDATA[
<blockquote class="uncited"><div>The problem is with this line of code...<div class="codebox"><p>Code: </p><pre><code>if {$today != [string trim [$game text]]} {</code></pre></div>The value of $game is not a valid command name, and can not be put in []'s<br><br>Darned if i can tell what the value of $game might be, but maybe you were wanting something more like...<div class="codebox"><p>Code: </p><pre><code>if {$today != [string trim $game]} {</code></pre></div></div></blockquote>if i chg <br>if {$today != [string trim [$game text]]} {<br>To<br>if {$today != [string trim $game]} {<br><br>bot say that<br><br>4:06:07am / * &lt;iRoc&gt; !lineup brazil<br>4:06:08am / * &lt;iB0T&gt; Unable to find next fixture.<br><br>and maybe i think prob searching text<br>set page [grabURL "<a href="http://www.google.com/search?btnI=&amp;q=site:espnfc.com/team/fixtures%3Fid%3D+" class="postlink">http://www.google.com/search?btnI=&amp;q=si ... s%3Fid%3D+</a>[ue $text]" 1]<br>$text brazil Go here<br><a href="http://espnfc.com/team/fixtures/_/id/205/brazil?cc=4716" class="postlink">http://espnfc.com/team/fixtures/_/id/205/brazil?cc=4716</a> <br><br>4:23:38am / * &lt;iRoc&gt; .tcl set today [string map {"  " " "} [clock format [clock seconds] -format "%h %e"]]<br>4:23:39am / * &lt;iB0T&gt; Tcl: Jun 22<br><br>and<br>if {$today != [string trim [$game text]]} {<br><br><br>error log<br><div class="codebox"><p>Code: </p><pre><code>4:19:07am / * &lt;iB0T&gt; [22:19:07] &lt;!DOCTYPE html&gt;&lt;head&gt;4:19:07am / * &lt;iB0T&gt; &lt;title&gt;Italy 2013 Fixtures / Schedules &amp; Results - ESPN FC&lt;/title&gt;4:19:07am / * &lt;iB0T&gt; 4:19:07am / * &lt;iB0T&gt; &lt;script&gt;/*c: null*/function cookieFunc(a,j,k){if(j){if(k){var d=new Date();d.setTime(d.getTime()+(k*24*60*60*1000));var b="; expires="+d.toGMTString()}else{var b=""}document.cookie=a+"="+j+b+"; path=/; domain=espn.go.com;";document.cookie=a+"="+j+b+"; path=/; domain=espnfc.com;"}else{var e=a+"=";var f=document.cookie.split(";");for(var g=0;g&lt;f.length;g++){var h=f[g];while(h.charAt(0)==" "){h=h.s4:19:08am / * &lt;iB0T&gt; [22:19:07] Tcl error [public_lineup]: invalid command name ""4:19:09am / * &lt;iB0T&gt; [22:19:09] &lt;!DOCTYPE html&gt;&lt;head&gt;4:19:09am / * &lt;iB0T&gt; &lt;title&gt;Brazil 2013 Fixtures / Schedules &amp; Results - ESPN FC&lt;/title&gt;4:19:09am / * &lt;iB0T&gt; 4:19:09am / * &lt;iB0T&gt; &lt;script&gt;/*c: null*/function cookieFunc(a,j,k){if(j){if(k){var d=new Date();d.setTime(d.getTime()+(k*24*60*60*1000));var b="; expires="+d.toGMTString()}else{var b=""}document.cookie=a+"="+j+b+"; path=/; domain=espn.go.com;";document.cookie=a+"="+j+b+"; path=/; domain=espnfc.com;"}else{var e=a+"=";var f=document.cookie.split(";");for(var g=0;g&lt;f.length;g++){var h=f[g];while(h.charAt(0)==" "){h=h.4:19:10am / * &lt;iB0T&gt; [22:19:09] Tcl error [public_lineup]: invalid command name ""4:19:21am / * &lt;iRoc&gt; .tcl putlog $::errorInfo4:19:22am / * &lt;iB0T&gt; [22:19:22] invalid command name ""4:19:22am / * &lt;iB0T&gt;     while executing4:19:22am / * &lt;iB0T&gt; "$game $text"4:19:22am / * &lt;iB0T&gt;     (procedure "public_lineup" line 26)4:19:22am / * &lt;iB0T&gt;     invoked from within4:19:22am / * &lt;iB0T&gt; "public_lineup $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"4:19:22am / * &lt;iB0T&gt; Tcl: </code></pre></div><p>Statistics: Posted by Guest — Sat Jun 22, 2013 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-06-22T17:38:20-04:00</updated>

		<published>2013-06-22T17:38:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101723#p101723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101723#p101723"/>
		<title type="html"><![CDATA[help tdom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101723#p101723"><![CDATA[
The problem is with this line of code...<div class="codebox"><p>Code: </p><pre><code>if {$today != [string trim [$game text]]} {</code></pre></div>The value of $game is not a valid command name, and can not be put in []'s<br><br>Darned if i can tell what the value of $game might be, but maybe you were wanting something more like...<div class="codebox"><p>Code: </p><pre><code>if {$today != [string trim $game]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jun 22, 2013 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-06-22T17:25:35-04:00</updated>

		<published>2013-06-22T17:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101722#p101722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101722#p101722"/>
		<title type="html"><![CDATA[help tdom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101722#p101722"><![CDATA[
<strong class="text-strong">line 26 To 34</strong><div class="codebox"><p>Code: </p><pre><code>       set doc [dom parse -html $page]set root [$doc documentElement]set today [string map {"  " " "} [clock format [clock seconds] -format "%h %e"]]set game [lindex [$root selectNodes {//div[@id='my-teams-table']//tr/td[2][substring(normalize-space(text()),1,2)="FT" and text()!="Time" and text()!="Status"]/../td[1]}] end]if {$today != [string trim [$game text]]} { set game [lindex [$root selectNodes {//div[@id='my-teams-table']//tr/td[2][substring(normalize-space(text()),1,2)!="FT" and text()!="Time" and text()!="Status"]/../td[1]}] 0]}</code></pre></div><br>Error:<br><div class="codebox"><p>Code: </p><pre><code>2:18:47am / * &lt;iRocc&gt; .tcl putlog $::errorInfo2:18:48am / * &lt;iB0T&gt; [20:18:48] invalid command name ""2:18:48am / * &lt;iB0T&gt;     while executing2:18:48am / * &lt;iB0T&gt; "$game text"2:18:48am / * &lt;iB0T&gt;     (procedure "public_lineup" line 26)2:18:48am / * &lt;iB0T&gt;     invoked from within2:18:48am / * &lt;iB0T&gt; "public_lineup $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</code></pre></div>can anyone tell me how to fix this error?<p>Statistics: Posted by Guest — Sat Jun 22, 2013 5:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
