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

	<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>2009-06-03T17:20:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-03-03T08:03:18-04:00</updated>

		<published>2009-03-03T08:03:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87678#p87678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87678#p87678"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87678#p87678"><![CDATA[
It can work only when "page" looks the same, otherwise you have to find someone who will write script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Tue Mar 03, 2009 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[HowlinPsycho]]></name></author>
		<updated>2009-03-02T15:04:47-04:00</updated>

		<published>2009-03-02T15:04:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87667#p87667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87667#p87667"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87667#p87667"><![CDATA[
Any chance this script can expand to getting info from other countries leagues too?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9881">HowlinPsycho</a> — Mon Mar 02, 2009 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-20T09:48:56-04:00</updated>

		<published>2009-02-20T09:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87480#p87480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87480#p87480"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87480#p87480"><![CDATA[
great tomekk, thank you very much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> the users of my room are very much pleased with this script and it is very useful! so that's a good feedback for you! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>feel free to check out my 2nd post 'Lineup script' it's something like this, maybe it won't be too different from this for you if you wish like helping me more <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=10393">Football</a> — Fri Feb 20, 2009 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-06-03T17:20:45-04:00</updated>

		<published>2009-02-20T09:22:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87479#p87479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87479#p87479"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87479#p87479"><![CDATA[
@Football<br><br>ver 0.2, searching by name added,<br>all previous functions are working too:<br><div class="codebox"><p>Code: </p><pre><code># Author: tomekk# e-mail:  tomekk/@/oswiecim/./eu/./org# home page: http://tomekk.oswiecim.eu.org/## Version 0.2## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.html# !table channels set table_chans {#channel1 #channel2}#######################################################################bind pub -|- !table show_tablepackage require httpproc get_table { } {set http_uagent "Opera/9.61 (Windows i686; U; en) Presto/2.1.1"set http_token [http::config -useragent $http_uagent]if {[catch {set http_token [::http::geturl "http://www.skysports.com/football/league/0,19540,11660,00.html" -timeout 10000]}]} {return "error"} {return [http::data $http_token]}}proc show_table { nick uhost hand chan arg } {global table_chansif {[lsearch $table_chans $chan] == -1} {                return        }set poss [lindex [split $arg] 0]set pos_mode 0set arg_team_name ""if {$poss != ""} {if {[regexp {^[a-zA-Z ]+$} $arg]} {set pos_mode 1set arg_team_name $arg}if {[regexp {^[0-9]+$} $poss]} {set start_pos $possset end_pos $possif {($start_pos &gt; 20) || ($end_pos &gt; 20)} {putquick "PRIVMSG $nick :max is 20, sorry"return}}if {[regexp {^[0-9]+\-[0-9]+$} $poss]} {set split_pos [split $poss "-"]        set start_pos [lindex $split_pos 0]set end_pos [lindex $split_pos 1]if {($start_pos &gt; 20) || ($end_pos &gt; 20)} { putquick "PRIVMSG $nick :max is 20, sorry" return}}} {set start_pos 1set end_pos 20}if {$pos_mode == 0} {if {$start_pos &gt; $end_pos} {putquick "PRIVMSG $nick :first argument must be lower than second ie. 1-20, not 20-1"return}}set all [get_table]if {$all == "error"} {putquick "PRIVMSG $nick :problem with connection, try again later, sorry"return}regsub -all "\n" $all "" allregsub -all "\t" $all "" all# some number before team nameregsub -all -nocase {&lt;tr(\s+|[a-zA-Z=\"\- ]+)&gt;\s+&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all "" all# team pointsregsub -all -nocase {&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all {&lt;pkt&gt;\1&lt;/pkt&gt;} all# team name, 1st tagregsub -all -nocase {&lt;td&gt;&lt;a\s+href=\"\/football\/team\/0,\d+,\d+,00\.html\"&gt;} $all "&lt;team_title&gt;" all# &lt;team&gt; team name here &lt;/team&gt;regsub -all -nocase {&lt;team_title&gt;([a-zA-Z ]+)&lt;/a&gt;&lt;/td&gt;} $all {&lt;team&gt;\1&lt;/team&gt;} all# new line marksregsub -all "&lt;team&gt;" $all "\n&lt;team&gt;" allregsub -all "&lt;\/team&gt;" $all "&lt;\/team&gt;\n" allregsub -all "&lt;pkt&gt;" $all "\n&lt;pkt&gt;" allregsub -all "&lt;\/pkt&gt;" $all "&lt;\/pkt&gt;\n" allset team_pos 1set team_idx 0set team_list [list]putquick "PRIVMSG $nick :Pos | Team | P | W | D | L | F | A | GD | PTS"putquick "PRIVMSG $nick :---------------------------------------------"# "clean" team names, pointsforeach a [split $all "\n"] {if {[string match *&lt;team&gt;* $a]} {regsub -all "&lt;team&gt;" $a "" aregsub -all "&lt;\/team&gt;" $a "" alappend team_list $aincr team_idx 1}if {[string match *&lt;pkt&gt;* $a]} {regsub -all "&lt;pkt&gt;" $a "" a                regsub -all "&lt;\/pkt&gt;" $a "" alappend team_list $aincr team_idx 1}if {$team_idx == 9} {if {$pos_mode == 0} {if {($team_pos &gt;= $start_pos) &amp;&amp; ($team_pos &lt;= $end_pos)} {putquick "PRIVMSG $nick :$team_pos|[join $team_list "|"]"}} {set team_name [lindex $team_list 0]if {[string match -nocase *$arg_team_name* $team_name]} {putquick "PRIVMSG $nick :$team_pos|[join $team_list "|"]"}}set team_list [list]set team_idx 0incr team_pos 1}}}putlog "football-table.tcl ver 0.2 by tomekk loaded"</code></pre></div>@DaRkOoO<br>I think yeah. Post at forum and maybe someone will write it for You <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=10332">tomekk</a> — Fri Feb 20, 2009 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2009-02-20T08:08:38-04:00</updated>

		<published>2009-02-20T08:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87478#p87478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87478#p87478"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87478#p87478"><![CDATA[
Is it posible to make something like this for livescore.com?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10236">DaRkOoO</a> — Fri Feb 20, 2009 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-20T07:48:00-04:00</updated>

		<published>2009-02-20T07:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87477#p87477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87477#p87477"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87477#p87477"><![CDATA[
hi tomekk,  is it possible for you to add an option that if you type !Table &lt;team&gt; like !Table Arsenal, it will give it's details just like if you type !table 1 or etc?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Fri Feb 20, 2009 7:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-02-20T07:13:53-04:00</updated>

		<published>2009-02-20T07:13:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87476#p87476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87476#p87476"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87476#p87476"><![CDATA[
and we got a solution <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=10332">tomekk</a> — Fri Feb 20, 2009 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-02-20T07:01:56-04:00</updated>

		<published>2009-02-20T07:01:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87474#p87474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87474#p87474"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87474#p87474"><![CDATA[
What your experiencing is the eggdrop queue mechanism at work. <blockquote class="uncited"><div># Allow identical messages in the server queue?<br>set double-server 0</div></blockquote>As you fill the putquick queue, your adding to it faster than it can display what your adding. So after you get to the 2nd line of hyphens, the rest aren't added because that 2nd line is already there containing the same thing and hasn't been displayed yet. All eggdrop queues have this behavior.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Feb 20, 2009 7:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-02-20T06:54:44-04:00</updated>

		<published>2009-02-20T06:54:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87473#p87473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87473#p87473"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87473#p87473"><![CDATA[
It can be a problem with IRC server.<br>Some flood protect or something.<br><br>With "---------------------" - not working.<br>If I add to the end of this line random number (ie. [expr rand() * 1000]) - its working but the line looks like "------------------------- 320.23453345" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I tried to change putquick to puthelp/putserv but nothing. <br>Even with "aaaaaaaa" or something, its not working too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Feb 20, 2009 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-19T18:38:49-04:00</updated>

		<published>2009-02-19T18:38:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87469#p87469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87469#p87469"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87469#p87469"><![CDATA[
hello tomekk hope tyou dont mind but i had a fiddle with your script<br><div class="codebox"><p>Code: </p><pre><code># Author: tomekk# e-mail:  tomekk/@/oswiecim/./eu/./org# home page: http://tomekk.oswiecim.eu.org/## Version 0.1## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.html# !table channelsset table_chans {#chan #chan2}#######################################################################bind pub -|- !table show_tablepackage require httpproc get_table { } {   set http_uagent "Opera/9.61 (Windows i686; U; en) Presto/2.1.1"   set http_token [http::config -useragent $http_uagent]   if {[catch {set http_token [::http::geturl "http://www.skysports.com/football/league/0,19540,11660,00.html" -timeout 10000]}]} {      return "error"   } {      return [http::data $http_token]   }}proc show_table { nick uhost hand chan arg } {   global table_chans   if {[lsearch $table_chans $chan] == -1} {                return        }   set poss [lindex [split $arg] 0]   if {$poss != ""} {      if {[regexp {^[0-9]+$} $poss]} {         set start_pos $poss         set end_pos $poss         if {($start_pos &gt; 20) || ($end_pos &gt; 20)} {            putquick "PRIVMSG $nick :Sorry $nick The max is 20"            return         }      }      if {[regexp {^[0-9]+\-[0-9]+$} $poss]} {         set split_pos [split $poss "-"]              set start_pos [lindex $split_pos 0]         set end_pos [lindex $split_pos 1]         if {($start_pos &gt; 20) || ($end_pos &gt; 20)} {             putquick "PRIVMSG $nick :Sorry $nick The max is 20"             return         }      }   } {      set start_pos 1      set end_pos 20   }   if {$start_pos &gt; $end_pos} {      putquick "PRIVMSG $nick :Sorry $nick The first argument must be lower than second ie. 1-20, not 20-1"      return   }   set all [get_table]   if {$all == "error"} {      putquick "PRIVMSG $nick :Sorry $nick Theres a small problem with connection, try again later, Thanks :-)"      return   }   regsub -all "\n" $all "" all   regsub -all "\t" $all "" all   # some number before team name   regsub -all -nocase {&lt;tr(\s+|[a-zA-Z=\"\- ]+)&gt;\s+&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all " " all      # team points   regsub -all -nocase {&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all {&lt;pkt&gt;\1&lt;/pkt&gt;} all   # team name, 1st tag   regsub -all -nocase {&lt;td&gt;&lt;a\s+href=\"\/football\/team\/0,\d+,\d+,00\.html\"&gt;} $all "&lt;team_title&gt; " all   # &lt;team&gt; team name here &lt;/team&gt;   regsub -all -nocase {&lt;team_title&gt;([a-zA-Z ]+)&lt;/a&gt;&lt;/td&gt;} $all {&lt;team&gt;\1&lt;/team&gt;} all   # new line marks   regsub -all "&lt;team&gt;" $all "\n &lt;team&gt; " all   regsub -all "&lt;\/team&gt;" $all "&lt;team&gt;\n" all   regsub -all "&lt;pkt&gt;" $all "\n &lt;pkt&gt; " all   regsub -all "&lt;\/pkt&gt;" $all " &lt;pkt&gt; \n" all   set team_pos 1   set team_idx 0   set team_list [list]   putquick "PRIVMSG $nick :Pos | Team | P | W | D | L | F | A | GD | PTS"   putquick "PRIVMSG $nick :---------------------------------------------"   # "clean" team names, points   foreach a [split $all "\n"] {      if {[string match *&lt;team&gt;* $a]} {         regsub -all "&lt;team&gt;" $a "" a         regsub -all "&lt;\/team&gt;" $a "" a         lappend team_list $a         incr team_idx 1      }      if {[string match *&lt;pkt&gt;* $a]} {         regsub -all "&lt;pkt&gt;" $a "" a                   regsub -all "&lt;\/pkt&gt;" $a "" a         lappend team_list $a         incr team_idx 1      }      if {$team_idx == 9} {         if {($team_pos &gt;= $start_pos) &amp;&amp; ($team_pos &lt;= $end_pos)} {            putquick "PRIVMSG $nick :$team_pos|[join $team_list "|"]"            putquick "PRIVMSG $nick :---------------------------------------------"         }         set team_list [list]         set team_idx 0         incr team_pos 1      }   }}putlog "football-table.tcl ver 0.1 by tomekk loaded" </code></pre></div>this now displays<br><blockquote class="uncited"><div>[10:32:23pm] &lt;FelixBot&gt; Pos | Team | P | W | D | L | F | A | GD | PTS<br>[10:32:23pm] &lt;FelixBot&gt; ---------------------------------------------<br>[10:32:23pm] &lt;FelixBot&gt; 10|   Fulham|  24  |  7  |  9  |  8  |  22  |  22  |  0  |  30  <br>[10:32:23pm] &lt;FelixBot&gt; ---------------------------------------------<br>[10:32:25pm] &lt;FelixBot&gt; 11|   Sunderland|  25  |  8  |  6  |  11  |  27  |  33  |  -6  |  30  <br>[10:32:27pm] &lt;FelixBot&gt; ---------------------------------------------<br>[10:32:29pm] &lt;FelixBot&gt; 12|   Hull City|  25  |  7  |  8  |  10  |  31  |  46  |  -15  |  29  <br>[10:32:31pm] &lt;FelixBot&gt; 13|   Newcastle United|  25  |  6  |  9  |  10  |  33  |  42  |  -9  |  27  <br>[10:32:33pm] &lt;FelixBot&gt; 14|   Bolton Wanderers|  25  |  8  |  3  |  14  |  27  |  37  |  -10  |  27  <br>[10:32:35pm] &lt;FelixBot&gt; 15|   Portsmouth|  25  |  7  |  6  |  12  |  27  |  41  |  -14  |  27</div></blockquote>instead of<br><blockquote class="uncited"><div>[10:19:23pm] &lt;FelixBot&gt; Pos | Team | P | W | D | L | F | A | GD | PTS<br>[10:19:23pm] &lt;FelixBot&gt; ---------------------------------------------<br>[10:19:23pm] &lt;FelixBot&gt; 10|Fulham|24|7|9|8|22|22|0|30<br>[10:19:23pm] &lt;FelixBot&gt; 11|Sunderland|25|8|6|11|27|33|-6|30<br>[10:19:24pm] &lt;FelixBot&gt; 12|Hull City|25|7|8|10|31|46|-15|29<br>[10:19:26pm] &lt;FelixBot&gt; 13|Newcastle United|25|6|9|10|33|42|-9|27<br>[10:19:28pm] &lt;FelixBot&gt; 14|Bolton Wanderers|25|8|3|14|27|37|-10|27<br>[10:19:30pm] &lt;FelixBot&gt; 15|Portsmouth|25|7|6|12|27|41|-14|27</div></blockquote>which i think makes it look more cleaner and easier to understand the only problem is i cant get --------------------------------------------- to display after every line on the table any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10476">Felix2003</a> — Thu Feb 19, 2009 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-19T15:08:23-04:00</updated>

		<published>2009-02-19T15:08:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87466#p87466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87466#p87466"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87466#p87466"><![CDATA[
hey tomekk is it possible for you to add an option that if you type !Table &lt;team&gt; like !Table Arsenal, it will give it's details just like if you type !table 1 or etc?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Thu Feb 19, 2009 3:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-19T06:22:53-04:00</updated>

		<published>2009-02-19T06:22:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87462#p87462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87462#p87462"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87462#p87462"><![CDATA[
hi tomekk, thank you very much for dedecating the time and effort in building that script, I haven't checked it yet, but it will be very very useful thank you very much! I was wondering if you might be interested in building a few more tcl script challenges I need? <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=10393">Football</a> — Thu Feb 19, 2009 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Felix2003]]></name></author>
		<updated>2009-02-18T23:04:05-04:00</updated>

		<published>2009-02-18T23:04:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87457#p87457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87457#p87457"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87457#p87457"><![CDATA[
this works perfectly thank you <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=10476">Felix2003</a> — Wed Feb 18, 2009 11:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-02-18T17:01:55-04:00</updated>

		<published>2009-02-18T17:01:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87450#p87450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87450#p87450"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87450#p87450"><![CDATA[
try:<div class="codebox"><p>Code: </p><pre><code># Author: tomekk# e-mail:  tomekk/@/oswiecim/./eu/./org# home page: http://tomekk.oswiecim.eu.org/## Version 0.1## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.html# !table channels set table_chans {#channel1 #channel2}#######################################################################bind pub -|- !table show_tablepackage require httpproc get_table { } {set http_uagent "Opera/9.61 (Windows i686; U; en) Presto/2.1.1"set http_token [http::config -useragent $http_uagent]if {[catch {set http_token [::http::geturl "http://www.skysports.com/football/league/0,19540,11660,00.html" -timeout 10000]}]} {return "error"} {return [http::data $http_token]}}proc show_table { nick uhost hand chan arg } {global table_chansif {[lsearch $table_chans $chan] == -1} {                return        }set poss [lindex [split $arg] 0]if {$poss != ""} {if {[regexp {^[0-9]+$} $poss]} {set start_pos $possset end_pos $possif {($start_pos &gt; 20) || ($end_pos &gt; 20)} {putquick "PRIVMSG $nick :max is 20, sorry"return}}if {[regexp {^[0-9]+\-[0-9]+$} $poss]} {set split_pos [split $poss "-"]        set start_pos [lindex $split_pos 0]set end_pos [lindex $split_pos 1]if {($start_pos &gt; 20) || ($end_pos &gt; 20)} { putquick "PRIVMSG $nick :max is 20, sorry" return}}} {set start_pos 1set end_pos 20}if {$start_pos &gt; $end_pos} {putquick "PRIVMSG $nick :first argument must be lower than second ie. 1-20, not 20-1"return}set all [get_table]if {$all == "error"} {putquick "PRIVMSG $nick :problem with connection, try again later, sorry"return}regsub -all "\n" $all "" allregsub -all "\t" $all "" all# some number before team nameregsub -all -nocase {&lt;tr(\s+|[a-zA-Z=\"\- ]+)&gt;\s+&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all "" all# team pointsregsub -all -nocase {&lt;td&gt;(\d+|\-\d+)&lt;\/td&gt;} $all {&lt;pkt&gt;\1&lt;/pkt&gt;} all# team name, 1st tagregsub -all -nocase {&lt;td&gt;&lt;a\s+href=\"\/football\/team\/0,\d+,\d+,00\.html\"&gt;} $all "&lt;team_title&gt;" all# &lt;team&gt; team name here &lt;/team&gt;regsub -all -nocase {&lt;team_title&gt;([a-zA-Z ]+)&lt;/a&gt;&lt;/td&gt;} $all {&lt;team&gt;\1&lt;/team&gt;} all# new line marksregsub -all "&lt;team&gt;" $all "\n&lt;team&gt;" allregsub -all "&lt;\/team&gt;" $all "&lt;team&gt;\n" allregsub -all "&lt;pkt&gt;" $all "\n&lt;pkt&gt;" allregsub -all "&lt;\/pkt&gt;" $all "&lt;pkt&gt;\n" allset team_pos 1set team_idx 0set team_list [list]putquick "PRIVMSG $nick :Pos | Team | P | W | D | L | F | A | GD | PTS"putquick "PRIVMSG $nick :---------------------------------------------"# "clean" team names, pointsforeach a [split $all "\n"] {if {[string match *&lt;team&gt;* $a]} {regsub -all "&lt;team&gt;" $a "" aregsub -all "&lt;\/team&gt;" $a "" alappend team_list $aincr team_idx 1}if {[string match *&lt;pkt&gt;* $a]} {regsub -all "&lt;pkt&gt;" $a "" a                regsub -all "&lt;\/pkt&gt;" $a "" alappend team_list $aincr team_idx 1}if {$team_idx == 9} {if {($team_pos &gt;= $start_pos) &amp;&amp; ($team_pos &lt;= $end_pos)} {putquick "PRIVMSG $nick :$team_pos|[join $team_list "|"]"}set team_list [list]set team_idx 0incr team_pos 1}}}putlog "football-table.tcl ver 0.1 by tomekk loaded"</code></pre></div>!table - will show all positions 1-20<br>!table 2 - will show only second position<br>!table 4-6 - will show positions from 4 to 6<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Wed Feb 18, 2009 5:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-17T14:07:34-04:00</updated>

		<published>2009-02-17T14:07:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87421#p87421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87421#p87421"/>
		<title type="html"><![CDATA[a table script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87421#p87421"><![CDATA[
A TCL script that when someone types !Table it will private message him with the table that appears in this link: <a href="http://www.skysports.com/football/league/0,19540,11660,00.html" class="postlink">http://www.skysports.com/football/leagu ... 60,00.html</a><br><br>but also an option to see only parts from the table like !Table 1-4 to see Top 4 teams, !Table 7-10 Teams placed 7-10th in the table, and etc.. anyone please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Tue Feb 17, 2009 2:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
