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

	<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-12-11T23:57:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ceepee]]></name></author>
		<updated>2004-12-11T23:57:52-04:00</updated>

		<published>2004-12-11T23:57:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43891#p43891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43891#p43891"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43891#p43891"><![CDATA[
Hi<br><br>I'm using that exact tcl ... earlier today it worked fine ... then i tried adding some extra tcls to the bot ... didn't work so i removed them again and now I keep getting this error:<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [pub:google]: error writing "stderr": bad file number</code></pre></div>I tried adding egghttp.tcl but that doesn't do the trick ... I can't find anything that has changed since this morning (when it still worked)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> <br><br>Anyone else running this?  Maybe (really unlikely) google changed something today?<br><br>/EDIT: OK, I delved a little deeper and found an answer to the problem here:<br><a href="http://forum.egghelp.org/viewtopic.php?t=4555" class="postlink">http://forum.egghelp.org/viewtopic.php?t=4555</a><br>Still don't understand though why it worked this morning ... and then suddenly it didn't work anymore <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=5756">ceepee</a> — Sat Dec 11, 2004 11:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2004-03-03T14:38:22-04:00</updated>

		<published>2004-03-03T14:38:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34210#p34210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34210#p34210"/>
		<title type="html"><![CDATA[Still no luck!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34210#p34210"><![CDATA[
Anyone got any ideas please? I'm no good at tcl nor parsing... need an expert out there to fix the script as the !file trigger doesn't work at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2989">AxS</a> — Wed Mar 03, 2004 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2003-09-04T15:07:43-04:00</updated>

		<published>2003-09-04T15:07:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26495#p26495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26495#p26495"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26495#p26495"><![CDATA[
Hehe...ok well lets forget 5 returns on a trigger, but how bout any ideas on fixing the 3rd proc !file? I tried changing something simple I changed,<br><br>set query "<a href="http://www.filemirrors.com/find.src?file=" class="postlink">http://www.filemirrors.com/find.src?file=</a>" <br><br>to<br><br>set query "<a href="http://www.filemirrors.com/search.src?file=" class="postlink">http://www.filemirrors.com/search.src?file=</a>"<br><br>but all that did was give me a tcl error (obviously i dont know what i'm doing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">)<br><br>Tcl error [pub:file]: list element in quotes followed by "&gt;Top" instead<br>of space<br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2989">AxS</a> — Thu Sep 04, 2003 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-04T14:37:18-04:00</updated>

		<published>2003-09-04T14:37:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26490#p26490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26490#p26490"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26490#p26490"><![CDATA[
<blockquote class="uncited"><div>Maybe someone could explain what to change so that i can get 5 returns on a search instead of one?  I can display the tcl code here if needed.  Still doesnt help that the !file trigger is broken <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote>Getting multiple results would require a total rewrite of the google proc, becuase it's currently using the "I feel lucky" option which provides an easy way to obtain the url of the first hit. (no need to parse any markup language bullshit)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 04, 2003 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2003-09-04T14:23:32-04:00</updated>

		<published>2003-09-04T14:23:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26489#p26489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26489#p26489"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26489#p26489"><![CDATA[
<blockquote class="uncited"><div># google.tcl v0.2.1<br>#<br># !google keywords - displays the first related website found from google in the channel<br># !image keywords  - displays the first related image found on google in the channel<br># !file keywords   - displays the first mirror download link found on filemirrors in the channel<br>#<br># by aNa|0Gue - <a href="mailto:analogue@glop.org">analogue@glop.org</a> - <a href="http://www.glop.org/" class="postlink">http://www.glop.org/</a><br>#<br># 04/17/2002 v0.2.1 useragent fix by FAN<br><br>package require http<br><br>bind pub - !google pub:google<br>bind pub - !image pub:image<br>bind pub - !file pub:file<br><br>set agent "Mozilla"<br><br>proc pub:google { nick uhost handle channel arg } {<br> global agent<br>if {[llength $arg]==0} {<br>putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"<br>} else {<br>set query "<a href="http://www.google.de/search?btnI=&amp;q=" class="postlink">http://www.google.de/search?btnI=&amp;q=</a>"<br>for { set index 0 } { $index&lt;[llength $arg] } { incr index } {<br>set query "$query[lindex $arg $index]"<br>if {$index&lt;[llength $arg]-1} then {<br>set query "$query+"<br>}<br>}<br>#putserv "PRIVMSG $channel :$query"<br>                set token [http::config -useragent $agent]<br>set token [http::geturl $query]<br>puts stderr ""<br>upvar #0 $token state<br>set max 0<br>foreach {name value} $state(meta) {<br>if {[regexp -nocase ^location$ $name]} {<br>set newurl [string trim $value]<br>putserv "PRIVMSG $channel :$newurl"<br>}<br>}<br>}<br>}<br><br>proc pub:image { nick uhost handle channel arg } {<br> global agent<br>if {[llength $arg]==0} {<br>putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"<br>} else {<br>set query "<a href="http://images.google.de/images?btnI=&amp;q=" class="postlink">http://images.google.de/images?btnI=&amp;q=</a>"<br>for { set index 0 } { $index&lt;[llength $arg] } { incr index } {<br>set query "$query[lindex $arg $index]"<br>if {$index&lt;[llength $arg]-1} then {<br>set query "$query+"<br>}<br>}<br>append query &amp;imgsafe=off<br>#putserv "PRIVMSG $channel :$query"<br>                set token [http::config -useragent $agent]<br>set token [http::geturl $query]<br>puts stderr ""<br>upvar #0 $token state<br>set max 0<br>foreach {name value} $state(meta) {<br>if {[regexp -nocase ^location$ $name]} {<br>set starturl "http://"<br>set newurl [string trim $value]<br>set newurl [string range $newurl [expr [string first = $newurl]+1] [expr [string first &amp; $newurl]-1]]<br>append starturl $newurl<br>putserv "PRIVMSG $channel :$starturl"<br>}<br>}<br>}<br>}<br><br>proc pub:file { nick uhost handle channel arg } {<br> global agent<br>if {[llength $arg]==0} {<br>putserv "PRIVMSG $channel :hey ! tappes un nom de fichier boulet !"<br>} else {<br>set query "<a href="http://www.filemirrors.com/find.src?file=" class="postlink">http://www.filemirrors.com/find.src?file=</a>"<br>set query "$query[lindex $arg 0]"<br>#putserv "PRIVMSG $channel :$query"<br>                set token [http::config -useragent $agent]<br>set token [http::geturl $query]<br>set html  [http::data $token]<br>puts stderr ""<br>upvar #0 $token state<br>set max 0<br>#foreach {name value} $state(meta) {<br>#putserv "PRIVMSG $channel :$value"<br>#}<br>#putserv "PRIVMSG $channel :$html"<br>set result "[lindex $html 1]"<br>set result [string range $result [expr [string first = $result]+2] [expr [string first &gt; $result]-2]]<br>putserv "PRIVMSG $channel :$result"<br>}<br>}<br><br>putlog "Google v0.2.1 - LOADED!"</div></blockquote>Thats the code <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=2989">AxS</a> — Thu Sep 04, 2003 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T14:05:09-04:00</updated>

		<published>2003-09-04T14:05:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26487#p26487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26487#p26487"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26487#p26487"><![CDATA[
It wasn't me! <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=187">caesar</a> — Thu Sep 04, 2003 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-04T13:11:13-04:00</updated>

		<published>2003-09-04T13:11:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26486#p26486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26486#p26486"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26486#p26486"><![CDATA[
post the code / a link to that tcl<br><br>btw : who deleted the "if its broken dont use it" post by kami ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Sep 04, 2003 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2003-09-04T12:02:21-04:00</updated>

		<published>2003-09-04T12:02:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26481#p26481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26481#p26481"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26481#p26481"><![CDATA[
Maybe someone could explain what to change so that i can get 5 returns on a search instead of one?  I can display the tcl code here if needed.  Still doesnt help that the !file trigger is broken <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=2989">AxS</a> — Thu Sep 04, 2003 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-04T04:48:34-04:00</updated>

		<published>2003-09-04T04:48:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26455#p26455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26455#p26455"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26455#p26455"><![CDATA[
could somebody tell ]Kami[ that this isn't funny ? thats just anoying, like nearly every of his posts...i havent seen any constructive post, only <strong class="text-strong">destructive</strong> once by him....ppslim do something....or does this forum have an ignore function ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Sep 04, 2003 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2003-09-03T23:36:36-04:00</updated>

		<published>2003-09-03T23:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26426#p26426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26426#p26426"/>
		<title type="html"><![CDATA[google tcl v0.2.1 broken :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26426#p26426"><![CDATA[
Is anyone able to use the <strong class="text-strong">!file</strong> trigger? I am no good in parsing, so I don't know how to fix if it is really broken, although i'd love to learn how heheh.<br>When I use that trigger, nothing happens no matter what i try to search for.<br><br>A little fix is what this tcl might need...its this one:<br><br>google.tcl v0.2.1 by aNa|0Gue<br><br>Many thanx peeps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2989">AxS</a> — Wed Sep 03, 2003 11:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
