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

	<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>2002-07-28T11:29:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-28T11:29:34-04:00</updated>

		<published>2002-07-28T11:29:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9274#p9274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9274#p9274"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9274#p9274"><![CDATA[
indeed, an eggdrop is useless without supergoogle =)<p>Statistics: Posted by Guest — Sun Jul 28, 2002 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-28T08:36:07-04:00</updated>

		<published>2002-07-28T08:36:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9258#p9258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9258#p9258"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9258#p9258"><![CDATA[
no, fix supergoogle... supergoogle rocks<p>Statistics: Posted by Guest — Sun Jul 28, 2002 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MORA]]></name></author>
		<updated>2002-07-27T06:22:05-04:00</updated>

		<published>2002-07-27T06:22:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9215#p9215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9215#p9215"/>
		<title type="html"><![CDATA[This one works.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9215#p9215"><![CDATA[
This one works, not very fancy though, just shows one URL when using !google<br><br><br><br># 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!"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1138">MORA</a> — Sat Jul 27, 2002 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-25T20:10:45-04:00</updated>

		<published>2002-07-25T20:10:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9183#p9183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9183#p9183"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9183#p9183"><![CDATA[
<blockquote class="uncited"><div>That's what I thought... thanks for confirming....<br><br>The question is, who's gonna fix it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>My knowledge of TCL is sadly lacking.<br><br>Cheers,<br><br>Mike</div></blockquote>I've mailed brother (author of supergoogle)and whined about it, and he said he would look into it when he had time for it. i'm unfortunatly to useless to do anything about it myself :/<p>Statistics: Posted by Guest — Thu Jul 25, 2002 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mike-c]]></name></author>
		<updated>2002-07-25T17:47:58-04:00</updated>

		<published>2002-07-25T17:47:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9177#p9177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9177#p9177"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9177#p9177"><![CDATA[
That's what I thought... thanks for confirming....<br><br>The question is, who's gonna fix it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>My knowledge of TCL is sadly lacking.<br><br>Cheers,<br><br>Mike<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1644">mike-c</a> — Thu Jul 25, 2002 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-25T17:45:49-04:00</updated>

		<published>2002-07-25T17:45:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9176#p9176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9176#p9176"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9176#p9176"><![CDATA[
This is down to the site design being changed.<br><br>When they change the design, the pointers that the script looks for also changes, thus making it unparsable to the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jul 25, 2002 5:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mike-c]]></name></author>
		<updated>2002-07-25T15:43:57-04:00</updated>

		<published>2002-07-25T15:43:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9174#p9174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9174#p9174"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9174#p9174"><![CDATA[
Same problem here.... I've tried 2 different google scripts...<br><br>One returns every result as  'http://&lt;/script' , and the other says no results.<br><br>The former searches google.yahoo.com rather than google.com.<br><br>The latter includes debugging (supergoogle), and the output was:<br><br>DEBUG: Query built (<a href="http://www.google.com/search?q=foo&amp;num=1" class="postlink">http://www.google.com/search?q=foo&amp;num=1</a>)<br>DEBUG: Contacting website...<br>DEBUG: Got state (HTTP/1.0 200 OK)<br>DEBUG: Got data (10106 bytes)<br>DEBUG: Could not find items to parse.<br><br><br>Cheers,<br><br>Mike<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1644">mike-c</a> — Thu Jul 25, 2002 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-25T11:50:48-04:00</updated>

		<published>2002-07-25T11:50:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9168#p9168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9168#p9168"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9168#p9168"><![CDATA[
I don't think it's the same problem, and besides i changed my user agent info way before that in the http.tcl so i had no problem using the old supergoogle. <a href="http://forum.egghelp.org/viewtopic.php?t=1397&amp;highlight=google" class="postlink">http://forum.egghelp.org/viewtopic.php? ... ght=google</a><br><br>the thread you are refering too, is about DEBUG: Got state (HTTP/1.0 403 Forbidden) <br>i get a DEBUG: Could not find items to parse.<p>Statistics: Posted by Guest — Thu Jul 25, 2002 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-25T10:06:23-04:00</updated>

		<published>2002-07-25T10:06:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9166#p9166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9166#p9166"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9166#p9166"><![CDATA[
Do a search for supergoogle on the forum, and you will find the solution<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=1294&amp;highlight=supergoogle" class="postlink">http://forum.egghelp.org/viewtopic.php? ... upergoogle</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jul 25, 2002 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-25T09:45:17-04:00</updated>

		<published>2002-07-25T09:45:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9165#p9165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9165#p9165"/>
		<title type="html"><![CDATA[google tcl script problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9165#p9165"><![CDATA[
anyone else but me having problems with google tcl scripts ?<br><br>stopped working sometime today, and i get this output from supergoogle 1.3:<br><br>&lt;pluppa&gt; [15:15] DEBUG: Query built (<a href="http://www.google.com/search?q=eggdrop&amp;num=5" class="postlink">http://www.google.com/search?q=eggdrop&amp;num=5</a>)<br>&lt;pluppa&gt; [15:15] DEBUG: Contacting website...<br>&lt;pluppa&gt; [15:15] DEBUG: Got state (HTTP/1.0 200 OK)<br>&lt;pluppa&gt; [15:15] DEBUG: Got data (13492 bytes)<br>&lt;pluppa&gt; [15:15] DEBUG: Could not find items to parse.<br>&lt;pluppa&gt; [15:15] [SG] (#hejsa) PloP requested eggdrop but couldn't find any results.<br><br>i used supergoogle1.2 earlier today but it's the same crap :/<br>i also tried the google script from ruptbot.com, but it doesnt work either.<br><br>i'm on tcl8.3<p>Statistics: Posted by Guest — Thu Jul 25, 2002 9:45 am</p><hr />
]]></content>
	</entry>
	</feed>
