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

	<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>2004-02-06T11:03:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2004-02-06T11:03:16-04:00</updated>

		<published>2004-02-06T11:03:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33287#p33287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33287#p33287"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33287#p33287"><![CDATA[
how about this: <a href="http://forum.egghelp.org/viewtopic.php?t=4319" class="postlink">in tcl FAQ on this forum</a> ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Fri Feb 06, 2004 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-02-03T10:53:04-04:00</updated>

		<published>2004-02-03T10:53:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33187#p33187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33187#p33187"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33187#p33187"><![CDATA[
I mean the regexp -nocase {&lt;b&gt;SVT1&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv1] part =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Tue Feb 03, 2004 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[t3ch^]]></name></author>
		<updated>2004-02-02T23:32:38-04:00</updated>

		<published>2004-02-02T23:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33181#p33181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33181#p33181"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33181#p33181"><![CDATA[
if it cant find SVT1 info, its set to "?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4315">t3ch^</a> — Mon Feb 02, 2004 11:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-02-02T15:47:33-04:00</updated>

		<published>2004-02-02T15:47:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33180#p33180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33180#p33180"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33180#p33180"><![CDATA[
if {![regexp -nocase {&lt;b&gt;SVT1&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv1]} {set tv1 "?"} <br><br>okay I dont understand this... can somebody explain it?<br>(I have read <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm</a> and I still dont understand it...)<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Mon Feb 02, 2004 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-22T13:13:28-04:00</updated>

		<published>2004-01-22T13:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32777#p32777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32777#p32777"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32777#p32777"><![CDATA[
Actualy, no, that's the place where you should change them to suit your needs, duh! is in the *settings* section. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 22, 2004 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-22T09:31:02-04:00</updated>

		<published>2004-01-22T09:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32774#p32774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32774#p32774"/>
		<title type="html"><![CDATA[TV script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32774#p32774"><![CDATA[
Hello GodOfSuicide,<br>the tv script is running now.<br><br>in the script was a wrong Code.<div class="codebox"><p>Code: </p><pre><code>#Location of a temporary outputfileset tv(output) "/tmp/tv.txt"</code></pre></div>I have change the code:<br><br><div class="codebox"><p>Code: </p><pre><code>#Location of a temporary outputfileset tv(output) "tmp/tv.txt"</code></pre></div>and now iss the tv.tcl running.<br><br>Thank´s for help.<br><br>Steve<p>Statistics: Posted by Guest — Thu Jan 22, 2004 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-01-21T16:12:05-04:00</updated>

		<published>2004-01-21T16:12:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32755#p32755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32755#p32755"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32755#p32755"><![CDATA[
are you sure you edited /temp and not (e.g.) ~/temp ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Jan 21, 2004 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-21T14:07:52-04:00</updated>

		<published>2004-01-21T14:07:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32745#p32745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32745#p32745"/>
		<title type="html"><![CDATA[THX]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32745#p32745"><![CDATA[
Hy GodOfSuicide<br><br>I am load the  tv.tcl from this site. And my eggdropp send me on the Partyline a Error <br><br>Tcl error [pub_tv]: couldn't write file "/tmp/tv.txt": permission denied<br><br><br>I have a tmp an the CHMOD iss 777 .<br><br>can you help me.<br><br>Steve<p>Statistics: Posted by Guest — Wed Jan 21, 2004 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-01-21T13:50:09-04:00</updated>

		<published>2004-01-21T13:50:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32744#p32744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32744#p32744"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32744#p32744"><![CDATA[
tv.tcl at <a href="http://irc.macht-bloe.de/" class="postlink">http://irc.macht-bloe.de/</a> is the most common one for german TV<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Jan 21, 2004 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-21T11:41:00-04:00</updated>

		<published>2004-01-21T11:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32741#p32741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32741#p32741"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32741#p32741"><![CDATA[
Hello have you are this script for German TV.<br><br>Thank you Steve.<br><br>The script on this Site tv.tcl, search by <a href="http://www.tvspielfilm.de" class="postlink">www.tvspielfilm.de</a> is not going on my bot.<br><br>Sorry for my englisch, there is not so good.<br><br>Steve<p>Statistics: Posted by Guest — Wed Jan 21, 2004 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[t3ch^]]></name></author>
		<updated>2004-01-20T09:50:25-04:00</updated>

		<published>2004-01-20T09:50:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32689#p32689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32689#p32689"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32689#p32689"><![CDATA[
I got this one for swedish tv.<br><div class="codebox"><p>Code: </p><pre><code># We need http packagepackage req httpbind pub - !tv info:tvproc info:tv {nick host handle chan text} {set url "http://tvprogram.nu/cgi-tvprogram/pp1.cgi?NU-palmpilot.htm"set data [http::data [http::geturl $url]]if {![regexp -nocase {&lt;b&gt;SVT1&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv1]} {set tv1 "?"}if {![regexp -nocase {&lt;b&gt;SVT2&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv2]} {set tv2 "?"}if {![regexp -nocase {&lt;b&gt;TV3 SVERIGE&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv3]} {set tv3 "?"}if {![regexp -nocase {&lt;b&gt;TV4&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+(.*?)&lt;b&gt;([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv4]} {set tv4 "?"}if {![regexp -nocase {&lt;b&gt;TV4\+&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+(.*?)&lt;b&gt;([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv5]} {set tv5 "?"}if {![regexp -nocase {&lt;b&gt;KANAL5&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+(.*?)&lt;b&gt;([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv6]} {set tv6 "?"}if {![regexp -nocase {&lt;b&gt;ZTV&lt;/b&gt;(.*?)&lt;b&gt;[0-9\. ]+([0-9a-zA-ZåäöÅÄÖ\-\.\?\:\'\n ]*)&lt;/b&gt;} $data data2 ok tv7]} {set tv7 "?"}set svt1 [lindex [split $tv1 \n] 0]set svt2 [lindex [split $tv2 \n] 0]set tv3 [lindex [split $tv3 \n] 0]set tv4 [lindex [split $tv4 \n] 0]set tv42 [lindex [split $tv5 \n] 0]set kanal5 [lindex [split $tv6 \n] 0]set ztv [lindex [split $tv7 \n] 0]puthelp "PRIVMSG $chan :\037SVT1:\037 \002$svt1\002 \037SVT2:\037 \002$svt2\002 \037TV3:\037 \002$tv3\002"puthelp "PRIVMSG $chan :\037TV4:\037 \002$tv4\002 \037TV4+:\037 \002$tv42\002 \037KANAL5:\037 \002$kanal5\002 \037ZTV:\037 \002$ztv\002"}</code></pre></div>Output is like this<div class="codebox"><p>Code: </p><pre><code>[14:11:12] [@t3ch^]: !tv[14:11:14] [JamesBond]: SVT1: Sändningsuppehåll SVT2: ? TV3: Alla älskar Raymond [14:11:16] [JamesBond]: TV4: Glamour  TV4+: Sändningsuppehåll  KANAL5: Spin City  ZTV: Hitparad </code></pre></div>Its not to hard to edit.<br><br>hf hf<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4315">t3ch^</a> — Tue Jan 20, 2004 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-11-25T17:57:57-04:00</updated>

		<published>2003-11-25T17:57:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30706#p30706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30706#p30706"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30706#p30706"><![CDATA[
<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=4156">MeJseL</a> — Tue Nov 25, 2003 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-11-25T10:24:24-04:00</updated>

		<published>2003-11-25T10:24:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30691#p30691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30691#p30691"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30691#p30691"><![CDATA[
anyone ?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Tue Nov 25, 2003 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-11-25T03:07:04-04:00</updated>

		<published>2003-11-25T03:07:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30663#p30663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30663#p30663"/>
		<title type="html"><![CDATA[!tv script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30663#p30663"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># tvprogram.nu.tcl v1.0 by Pixelz# public triggerset tvpnu(trg) "!tv"## code below ##package require httpsetudef flag tvset tvpnu(ver) "v1.0"proc tvpnu_get {url} {  global tvnu  if {[catch {::http::geturl $url -timeout 20000} tok]} {    return 0  } else {    set d [::http::data $tok]    ::http::cleanup $tok    regsub -all -- "\n" $d "" d    regsub -all -nocase -- "&lt;br&gt;" $d "\n" d    regsub -all -nocase -- "&lt;a.*?&gt;.*?&lt;/a&gt;" $d "" d    foreach i [split $d "\n"] {      if {[string match *&lt;b&gt;* $i]} {        append x "$i\n"      }    }    regsub -all -- "&lt;.*?&gt;" $x "" x    foreach i [split $x "\n"] {      if {![string match "* - " $i]} {        set i [string replace $i 2 2 :]        append ret "$i\n"      }    }    if {[info exists ret]} { return $ret } else { return 0 }  }}proc tvpnu_urlget {chan} {  set x "http://tvprogram.nu/cgi-tvprogram/pp1.cgi?"  switch [string tolower $chan] {    svt1 { set url "${x}SVT1" }    svt2 { set url "${x}SVT2" }    tv3 { set url "${x}TV3_SVERIGE" }    tv4 { set url "${x}TV4" }    kanal5 { set url "${x}KANAL5" }    femman { set url "${x}KANAL5" }    tv6 { set url "${x}TV6" }    ztv { set url "${x}ZTV" }    tv8 { set url "${x}TV8" }    mtv { set url "${x}MTV" }    canal+  { set url "${x}CANAL+" }    canal+gul { set url "${x}CANAL+GUL" }    gul { set url "${x}CANAL+GUL" }    tv1000 { set url "${x}TV1000" }    tv1000_cinema { set url "${x}TV1000_CINEMA" }    cinema { set url "${x}TV1000_CINEMA" }    bbc_prime { set url "${x}BBC_Prime" }    bbcprime { set url "${x}BBC_Prime" }    bbc_world { set url "${x}BBC_World" }    bbcworld { set url "${x}BBC_World" }    eurosport { set url "${x}Eurosport" }    default { return 0 }  }  return "${url}-palmpilot.htm"}proc tvpnu_current {data} {  set cnt 0  foreach i [lsort [split $data "\n"]] {    if {$i == ""} { continue }    lappend lst "[incr cnt] [clock scan "[string range $i 0 4]:00"] $i"  }  foreach i $lst {    if {[lindex $i 1] &gt; [clock seconds]} {      set place [expr [lindex $i 0] - 1]      break    }  }  if {![info exists place]} { set place $cnt }  if {$place == [expr $cnt - 1]} { set place 1 } elseif {$place == "0"} { set place $cnt }  set x 0  foreach i $lst {    incr x    if {$x == $place} { return [lrange $i 2 end] }  }  return 0}bind pub - $tvpnu(trg) pub_tvpnuproc pub_tvpnu {nick uhost hand chan text} {  set text [split $text]  global tvpnu  set chans "SVT1, SVT2, TV3, Kanal5, TV6, ZTV, TV8, MTV, Canal+, Canal+Gul, TV1000, TV1000_Cinema, BBC_Prime, BBC_World, Eurosport"  if {![string match *+tv* [channel info $chan]]} {    return 0  } elseif {$text == ""} {    putserv "NOTICE $nick :$tvpnu(trg) &lt;channels&gt;"    return 0  } elseif {[string tolower $text] == "help"} {    putserv "NOTICE $nick :Known channels: $chans"    return 0  } elseif {[llength $text] &gt; 1} {    foreach i $text {      if {[tvpnu_urlget $i] == "0"} {        putserv "NOTICE $nick :$i is not a known channel. Known channels: $chans"        return 0      } else {        set data [tvpnu_get [tvpnu_urlget $i]]        if {$data == "0"} {          putserv "NOTICE $nick :Data fetch failed!"          return 0        } else {          set data [tvpnu_current $data]          if {$data == "0"} {            putserv "NOTICE $nick :Parse error!"            return 0          } else {            set len 0            foreach c $text {              set c [string length $c]              if {$c &gt; $len} { set len $c }            }            putserv "PRIVMSG $chan :[format "%-${len}s %1s" "$i" "$data"]"          }        }      }    }    return 1  } elseif {[tvpnu_urlget $text] == "0"} {    putserv "NOTICE $nick :[join $text] is not a known channel. Known channels: $chans"    return 0  } else {    set data [tvpnu_get [tvpnu_urlget $text]]    if {$data == "0"} {      putserv "NOTICE $nick :Data fetch failed!"      return 0    } else {      set data [tvpnu_current $data]      if {$data == "0"} {        putserv "NOTICE $nick :Parse error!"        return 0      } else {        putserv "PRIVMSG $chan :$data"      }    }    return 1  }}putlog "tv.tcl Loaded!"</code></pre></div><br>This works but it a bit bad .. i have to type !tv &lt;tvchan&gt; .. to se whats on that chan insted of using just !tv and get like svt1, svt2, tv3, tv4, kanal5, ztv, mtv on one line anyone kind anuff to help me with that .. im new to tcl  .. used to code mirc script  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> .. and i have be asking alot of questions and i know im a bit anoing  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Tue Nov 25, 2003 3:07 am</p><hr />
]]></content>
	</entry>
	</feed>
