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

	<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-13T06:46:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sparky]]></name></author>
		<updated>2006-01-13T06:46:31-04:00</updated>

		<published>2006-01-13T06:46:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59370#p59370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59370#p59370"/>
		<title type="html"><![CDATA[tvprog2.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59370#p59370"><![CDATA[
any chance of another update?<br>as they've changed their site yet again, would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7235">Sparky</a> — Fri Jan 13, 2006 6:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JAFO]]></name></author>
		<updated>2005-12-27T20:42:17-04:00</updated>

		<published>2005-12-27T20:42:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58719#p58719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58719#p58719"/>
		<title type="html"><![CDATA[tvprog2.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58719#p58719"><![CDATA[
Indeed the old version dont work no more <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>But this version gives an error coz of "putservmc" <br><br>I replaced it with putserv , works now , but ...................<br><br>In the old version i got loads of TV-Show , now i only get 1 or 2 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>Thx for updating tho wiva <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> , but might need some more finetuning ????<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6850">JAFO</a> — Tue Dec 27, 2005 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiva]]></name></author>
		<updated>2005-12-04T23:17:27-04:00</updated>

		<published>2005-12-04T23:17:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57960#p57960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57960#p57960"/>
		<title type="html"><![CDATA[tvprog2.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57960#p57960"><![CDATA[
This is a updated and modifed version of tvprog.tcl v0.1 by greenbear.<div class="codebox"><p>Code: </p><pre><code>############################################# tvprog.tcl v0.2 by wiva.spam at gmail.com# Updated to thefutoncritic's new layout# and some other changes I wanted to limit# the output.## tvprog.tcl v0.1 by greenbear at gmail.com # # Parse the tv-program for yesterday, today and # tomorrow from thefutoncritic.com. # # Enable with .chanset #channel +tv ##Max shows per lineset showsperline 3bind pub - !today pub:tfctoday bind pub - !tomorrow pub:tfctomorrow bind pub - !yesterday pub:tfcyesterdaypackage require httpsetudef flag tv proc pub:tfctoday {nick uhost hand chan text} {  if ![channel get $chan tv] return  parse:tfc $chan 0} proc pub:tfctomorrow {nick uhost hand chan text} {  if ![channel get $chan tv] return  parse:tfc $chan 1} proc pub:tfcyesterday {nick uhost hand chan text} { if ![channel get $chan tv] return parse:tfc $chan 2}proc parse:tfc {chan type} {  global showsperline set data [http::data [http::geturl http://www.thefutoncritic.com/cgi/calendar.cgi?view=whatsnew]] set data [string map {"\n" ""} $data]  set data [string map {"bigorange'&gt;" "bigorange'&gt;\n"} $data] set data [string map {"&lt;/li&gt;" "&lt;/li&gt;\n"} $data] set data [string map {"&lt;ul&gt;" "&lt;ul&gt;\n"} $data] if {$type==1} {   scan [clock format [clock scan tomorrow] -format "%m/%d/%y"] %d/%d/%d m d y  } elseif {$type==2} {  scan [clock format [clock scan yesterday] -format "%m/%d/%y"] %d/%d/%d m d y } {   scan [strftime "%m/%d/%y"] %d/%d/%d m d y  }  set when "$m/$d/0$y"  set parse 0  set start 0 foreach line [split $data \n] {   #Correct day found  if {!$parse&amp;&amp;[string match -noc "*$when*" $line]} {    set parse 1    regsub -all {&lt;(.|\n)*?&gt;} $line {} clean    set out [join $clean]    putservmc "PRIVMSG $chan :$out"    continue  }   if {$parse&amp;&amp;[string match -noc "*middle*content*ends*" $line]} {return}   #Skip unwanted shows/channels  if {$parse&amp;&amp;[string match -noc "*(lifetime)*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*(vh1)*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*(espn)*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*(mtv)*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*mlb*playoffs*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*(a&amp;e)*" $line]} {continue}  if {$parse&amp;&amp;[string match -noc "*(spike_tv)*" $line]} {continue}  if {$parse} {    regsub -all {&lt;(.|\n)*?&gt;} $line {} clean    set out [join $clean]    #Gather all shows that start at the same time before outputting   if {[string first "-" $out] != -1 &amp;&amp; $when != [string range $out 0 [string first "-" $out ]]} {    if {$start} {        print:tfc $longstring $when $chan    }    set when [string range $out 0 [string first "-" $out ]]    set longstring ""    set start 1    set nbr 1   }   if {$start} {    set epnamestart [string first "-" $out]    set epnamestop    [string first "(" $out]    set epnbrstart  [string first "#" $out]    # Check for FOX numbering    if { $epnbrstart == -1 &amp;&amp; [string match "*new?episode*(*-*)*" $out]} {        set epnbrstart [expr 1+$epnamestop+[string first "-" [string range $out [expr 1+$epnamestop] end]]]    }    set epnbrstop    [string first ")" [string range $out $epnbrstart end]]    if { $epnbrstart != -1 } {        append longstring [string range $out [expr $epnamestart + 2] [expr $epnamestop - 1]]        #Another FOX numbering fix        if { [string index $out $epnbrstart] == "-"} {            append longstring "#"            append longstring [string range $out [expr 1+$epnbrstart] [expr $epnbrstart + $epnbrstop - 1] ]        } else {            append longstring [string range $out $epnbrstart [expr $epnbrstart + $epnbrstop - 1] ]        }        #Start on a new line after 'showsperline' shows        if { [expr $nbr % $showsperline] == 0} {            append longstring "\n"        } else {            append longstring " :: "        }        incr nbr    }   }   if {$out==""} {    print:tfc $longstring $when $chan    return   }   }  } } proc print:tfc {longstring when chan} {    if { [string compare $longstring ""] != 0} {        #Adjust for extra show separator added at the end of the line        if { [expr 4+[string last " :: " $longstring]] == [string length $longstring] } {            set longstring [string range $longstring 0 [string last " :: " $longstring]]        }        #Pad times to same length        if { [string first ":" $when] == 1 } {            set when 0$when        }        #Output each non-empty line with the time added        foreach line [split $longstring \n] {            if { [string length $line] &gt; 1} {                putserv "PRIVMSG $chan :$when $line"            }        }    }}putlog "* tvprog2.tcl loaded." </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7066">wiva</a> — Sun Dec 04, 2005 11:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
