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

	<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-01-23T17:03:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-23T17:03:46-04:00</updated>

		<published>2006-01-23T17:03:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59645#p59645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59645#p59645"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59645#p59645"><![CDATA[
<blockquote class="uncited"><div>Ok, I found live.tcl but this script is ... When i use:<div class="codebox"><p>Code: </p><pre><code>[20:17] &lt;Fclan&gt; !score england[20:17] &lt;Sbot&gt; Sorry Fclan, no score found.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[20:17] &lt;Fclan&gt; !score e[20:17] &lt;SWOS&gt; Newcastle Jets 1 - 0 Melbourne Victory</code></pre></div>this script doesn`t work :/</div></blockquote>!score england doesnt work. <br>Its !score &lt;team&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7203">norway27</a> — Mon Jan 23, 2006 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-22T15:19:16-04:00</updated>

		<published>2006-01-22T15:19:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59611#p59611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59611#p59611"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59611#p59611"><![CDATA[
Ok, I found live.tcl but this script is ... When i use:<div class="codebox"><p>Code: </p><pre><code>[20:17] &lt;Fclan&gt; !score england[20:17] &lt;Sbot&gt; Sorry Fclan, no score found.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[20:17] &lt;Fclan&gt; !score e[20:17] &lt;SWOS&gt; Newcastle Jets 1 - 0 Melbourne Victory</code></pre></div>this script doesn`t work :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Sun Jan 22, 2006 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-22T05:57:37-04:00</updated>

		<published>2006-01-22T05:57:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59595#p59595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59595#p59595"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59595#p59595"><![CDATA[
Live.tcl ?! I was searching it, where can I get it??, @ demond, I use rssnews.tcl, but I need to know how work with http..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Sun Jan 22, 2006 5:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-21T23:02:53-04:00</updated>

		<published>2006-01-21T23:02:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59590#p59590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59590#p59590"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59590#p59590"><![CDATA[
use RSS script such as <a href="http://demond.net/rssnews.tcl" class="postlink">rssnews.tcl</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 21, 2006 11:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-21T19:26:46-04:00</updated>

		<published>2006-01-21T19:26:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59582#p59582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59582#p59582"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59582#p59582"><![CDATA[
For footbal results I use live.tcl that shows info from <a href="http://www.livescore.com" class="postlink">www.livescore.com</a><br>But I wish there was a script for football news..I tried to search for espn.tcl but I only got dead links <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=7203">norway27</a> — Sat Jan 21, 2006 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-21T19:16:31-04:00</updated>

		<published>2006-01-21T19:16:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59581#p59581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59581#p59581"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59581#p59581"><![CDATA[
I need it for football results, so I need few veriables .. ;/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Sat Jan 21, 2006 7:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-21T19:07:42-04:00</updated>

		<published>2006-01-21T19:07:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59580#p59580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59580#p59580"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59580#p59580"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>Tcl error [www:news4]: can't read "news": no such variable</code></pre></div></div></blockquote>Yes I got that too sometimes..I had to search through the page for another class and then change the name of the class in the script until I got it right..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7203">norway27</a> — Sat Jan 21, 2006 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-21T19:00:03-04:00</updated>

		<published>2006-01-21T19:00:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59578#p59578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59578#p59578"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59578#p59578"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Tcl error [www:news4]: can't read "news": no such variable</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Sat Jan 21, 2006 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-21T18:20:39-04:00</updated>

		<published>2006-01-21T18:20:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59576#p59576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59576#p59576"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59576#p59576"><![CDATA[
Something like this:<br><br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !news www:news4proc www:news4 {nick host handle chan text} {   set token [::http::geturl http://www.webpage.com -timeout 10000]   set status [::http::status $token]   if {$status!="ok"} {      switch -exact -- [string tolower $status] {         reset   { puthelp "PRIVMSG $chan :error: server connection was reset." }         timeout { puthelp "PRIVMSG $chan :error: server timeout (10 seconds)"   }         default { puthelp "PRIVMSG $chan :unknown server error occured"      }      }      ::http::cleanup $token; return   }   if {[::http::ncode $token]=="404"} {      ::http::cleanup $token      puthelp "PRIVMSG $chan :Sorry, error 404"; return   }   set data [::http::data $token]; ::http::cleanup $token   set all [regexp -all -inline -nocase -- {class="class_story"&gt;(.*?)&lt;/a&gt;} $data]   set count 1   foreach {tmp news} $all {      if {$count=="2"} {return}}set all2 [regexp -all -inline -nocase -- {class="class_story"(.*?)&lt;/a&gt;} $data]      set count 1   foreach {tmp news2} $all2 {      if {$count=="2"} {return}      incr count   } puthelp "PRIVMSG $chan :www.webpage.com - $news" puthelp "PRIVMSG $chan :www.webpage.com - $news2"}</code></pre></div>It was messy..got alot of html code too with it...but the bot did respond with<br>line 1: topic<br>Line 2: topic &amp; story<br><br>I hope someone can try to fix this code because I have no idea what to do!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7203">norway27</a> — Sat Jan 21, 2006 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-20T13:46:42-04:00</updated>

		<published>2006-01-20T13:46:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59545#p59545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59545#p59545"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59545#p59545"><![CDATA[
Can you show me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Fri Jan 20, 2006 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-20T12:18:54-04:00</updated>

		<published>2006-01-20T12:18:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59543#p59543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59543#p59543"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59543#p59543"><![CDATA[
<blockquote class="uncited"><div>Any ideas why mroe than 1 regexp doesn`t work? i have no tcl errors.. bot do not send msg</div></blockquote>I got it to work a little bit if I typed in the name of the same class in both places...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7203">norway27</a> — Fri Jan 20, 2006 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-20T10:18:57-04:00</updated>

		<published>2006-01-20T10:18:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59541#p59541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59541#p59541"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59541#p59541"><![CDATA[
Any ideas why mroe than 1 regexp doesn`t work? i have no tcl errors.. bot do not send msg<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Fri Jan 20, 2006 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-19T14:21:08-04:00</updated>

		<published>2006-01-19T14:21:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59534#p59534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59534#p59534"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59534#p59534"><![CDATA[
I tried to make it also, but doesn`t work, don`t know why.. 0 errors in tcl..<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !news www:news4proc www:news4 {nick host handle chan text} {   set token [::http::geturl http://www.eurosport.com/football/ -timeout 10000]   set status [::http::status $token]   if {$status!="ok"} {      switch -exact -- [string tolower $status] {         reset   { puthelp "PRIVMSG $chan :error: server connection was reset." }         timeout { puthelp "PRIVMSG $chan :error: server timeout (10 seconds)"   }         default { puthelp "PRIVMSG $chan :unknown server error occured"      }      }      ::http::cleanup $token; return   }   if {[::http::ncode $token]=="404"} {      ::http::cleanup $token      puthelp "PRIVMSG $chan :Sorry, error 404"; return   }   set data [::http::data $token]; ::http::cleanup $token   set all [regexp -all -inline -nocase -- {class="storyshortmaintitle"&gt;(.*?)&lt;/a&gt;} $data]   set count 1   foreach {tmp news} $all {      if {$count=="2"} {return}}set all2 [regexp -all -inline -nocase -- {class="(.*?)&lt;/a&gt;} $data]      set count 1   foreach {tmp news2} $all2 {      if {$count=="2"} {return}      incr count   } puthelp "PRIVMSG $chan :www.eurosport.com - $news - $news2"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Thu Jan 19, 2006 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[norway27]]></name></author>
		<updated>2006-01-19T12:25:53-04:00</updated>

		<published>2006-01-19T12:25:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59533#p59533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59533#p59533"/>
		<title type="html"><![CDATA[Re: check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59533#p59533"><![CDATA[
<blockquote class="uncited"><div>it is a news script, but I want to see latest news on channel only when site is updated.. can someone help?<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !news www:news4proc www:news4 {nick host handle chan text} {   set token [::http::geturl http://www.eurosport.com/football/ -timeout 10000]   set status [::http::status $token]   if {$status!="ok"} {      switch -exact -- [string tolower $status] {         reset   { puthelp "PRIVMSG $chan :error: server connection was reset." }         timeout { puthelp "PRIVMSG $chan :error: server timeout (10 seconds)"   }         default { puthelp "PRIVMSG $chan :unknown server error occured"      }      }      ::http::cleanup $token; return   }   if {[::http::ncode $token]=="404"} {      ::http::cleanup $token      puthelp "PRIVMSG $chan :Sorry, error 404"; return   }   set data [::http::data $token]; ::http::cleanup $token   set all [regexp -all -inline -nocase -- {class="storyshortmaintitle"&gt;(.*?)&lt;/a&gt;} $data]   set count 1   foreach {tmp news} $all {      if {$count=="2"} {return}      puthelp "PRIVMSG $chan :www.eurosport.com - $news"      incr count   }}</code></pre></div></div></blockquote>It would be great if someone could show me how this script can read from 2 classes and post it in a chan..this script reads from one-&gt; class="storyshortmaintitle"<br><br>Lets say the 2 classes are "storyshortmaintitle" and "story"<br><br>like this:<br><br>&lt;user&gt;!news<br>&lt;bot&gt; "storyshortmaintitle"<br>&lt;bot&gt; "story"<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7203">norway27</a> — Thu Jan 19, 2006 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2006-01-18T07:37:12-04:00</updated>

		<published>2006-01-18T07:37:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59520#p59520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59520#p59520"/>
		<title type="html"><![CDATA[check site]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59520#p59520"><![CDATA[
Ok I tried to write, but it doesn`t work, i tried with normal site, with regexps which works on other scripts, here is a code with example site, where is mistake? Bot do not reply on trigger...<br><br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !test www:testproc www:test {nick host handle chan text} {                        set lastnews ""                 set lastnews $match                 set data [http::data http::geturl www.example.com]]regexp {&lt;td width="65%" class="medium"&gt;(.*?)&lt;/td&gt;&lt;td align="right"} $data data match]           if {$lastnews != ""} {                                puthelp "PRIVMSG $chan :test - $match"                                                 }                                          set lastnews $macz                                                                   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Wed Jan 18, 2006 7:37 am</p><hr />
]]></content>
	</entry>
	</feed>
