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

	<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>2005-12-29T11:11:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FcLan]]></name></author>
		<updated>2005-12-29T11:11:37-04:00</updated>

		<published>2005-12-29T11:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58776#p58776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58776#p58776"/>
		<title type="html"><![CDATA[Live ticker bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58776#p58776"><![CDATA[
I`m working for live ticker bot with eurosport.com site, but, bot sends minutes from bottom site, but the oldest commentary, I don`t want to use http where geturl is a command i want to use a socket but how change it.. <br><div class="codebox"><p>Code: </p><pre><code>set url "www.eurosport.com" proc get_live {nick uhost handle channel text} { global url set sock [socket $url 80] fconfigure $sock -buffering line -buffersize 1000 puts $sock "GET /home/pages/v4/l0/s22/e10028/live_lng0_spo22_evt10028_mtc112276.shtml HTTP/1.0" puts $sock "Host: www.eurosport.com" puts $sock "" puts $sock "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; WindowsNT 5.0)" flush $sock while {![eof $sock]} { gets $sock body regexp -all {/&gt;&lt;font color="FF0000"&gt;&lt;b&gt;(.*?)&lt;/b&gt;&lt;/font&gt;} $body _ minuteregexp -all {(.*?)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;} $body _ com}if {[eof $sock]} { close $sock } regsub -all {(&lt;.+?&gt;)} $minute"" minute regsub -all {(&lt;.+?&gt;)} $com"" com  puthelp "PRIVMSG $channel :[lindex $minute] [lindex $com]"}bind pub - !live get_live</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[16:06] &lt;Fclan&gt; !live[16:06] &lt;bot`&gt; 23:12Â  Half time in Highbury...4-0 for Arsenal after an astonishing display from the Gunners..</code></pre></div>.<br><br>it should be:<div class="codebox"><p>Code: </p><pre><code>fclan: !livebot: 23:12 Thanks for joining us today for our coverage of the Premiership. Please come back again on Saturday for another nine games as the Premiership continues it's Christmas programme starting at 13:45cet here on eurosport.com</code></pre></div>Please help, must be way to get info from top !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6791">FcLan</a> — Thu Dec 29, 2005 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
