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

	<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>2007-06-20T18:11:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[indro]]></name></author>
		<updated>2007-06-20T18:11:00-04:00</updated>

		<published>2007-06-20T18:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73728#p73728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73728#p73728"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73728#p73728"><![CDATA[
<blockquote class="uncited"><div>If your using windows notepad, that is your problem, edit with wordpad instead.</div></blockquote>I use always Macromedia Dreamweaver for this kind editing, not a notepad. Now I did this with wordpad and everything works fine. Thank You Speechles!,  now I will use Incith script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9031">indro</a> — Wed Jun 20, 2007 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-20T15:58:50-04:00</updated>

		<published>2007-06-20T15:58:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73723#p73723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73723#p73723"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73723#p73723"><![CDATA[
What you did wrong was change encodings or something, because...<div class="codebox"><p>Code: </p><pre><code>    # FLOOD_INIT    # modified from bseen    #    variable flood_data    variable flood_array    proc flood_init {} {      if {$incith::google::ignore &lt; 1} {        return 0      }</code></pre></div>I can clearly see a less than sign here in my copy where your copy is missing this evaluator.  Under certain language encodings this might happen.  If your using windows notepad, that is your problem, edit with wordpad instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 20, 2007 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[indro]]></name></author>
		<updated>2007-06-20T10:29:56-04:00</updated>

		<published>2007-06-20T10:29:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73716#p73716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73716#p73716"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73716#p73716"><![CDATA[
<blockquote class="uncited"><div>Config section of incith google -  # number of search results/image links to return, 'define:' is always 1 as some defs are huge<br>    variable search_results 4<br>    variable image_results 4<br>    variable local_results 4<br>    ... etc etc, continues ...<br><br>I can easily see a way to make incith-google give 1 result, sure you can too if you only read the config.</div></blockquote>I changed variable search_results 1 and error is above:<br><br>[16:58] Tcl error in file 'eggdrop.conf':<br>[16:58] syntax error in expression "$incith::google::ignore  1": extra tokens at<br> end of expression<br>    ("if" test expression)<br>    while compiling<br>"if {$incith::google::ignore  1} {<br>        return 0<br>      }"<br>    (compiling body of proc "flood_init", line 2)<br>    invoked from within<br>"flood_init"<br>    (in namespace eval "::incith::google" script line 1138)<br>    invoked from within<br>"namespace eval google {<br>    # GOOGLE<br>    # performs a search on google.<br>    #<br>    proc google {input} {<br>      # local variable initialization<br>      se..."<br>    (in namespace eval "::incith" script line 2)<br>    invoked from within<br>"namespace eval incith {<br>  namespace eval google {<br>    # GOOGLE<br>    # performs a search on google.<br>    #<br>    proc google {input} {<br>      # local variab..."<br><br>[16:58] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br><br>What I do wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9031">indro</a> — Wed Jun 20, 2007 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-20T07:55:47-04:00</updated>

		<published>2007-06-20T07:55:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73709#p73709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73709#p73709"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73709#p73709"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Search the Tcl Archive for <a href="http://forum.egghelp.org/viewtopic.php?t=10175" class="postlink">incith:google</a>. It's not complicated to setup, and it works!</div></blockquote>Problem is not that incith script are complicate, I example dont like it because this gives 3 answers but I want only one:(<br>I`m pretty sure that here are people who can fix this script, maybe somone will do this?</div></blockquote><blockquote class="uncited"><div>    # number of search results/image links to return, 'define:' is always 1 as some defs are huge<br>    variable search_results 4<br>    variable image_results 4<br>    variable local_results 4<br>    ... etc etc, continues ...</div></blockquote>I can easily see a way to make incith-google give 1 result, sure you can too if you only read the config.<br><br>And now, about this script and why image no longer works. It's because of how this script isn't parsing the sites actual html at all, and rather using http packages state (meta array) function.  For google images, I believe location tag does not exist in the meta array any longer, which is what it needs to function.  It also has no fallback to catch if location isn't found to at least tell users 'No results found'.  So your left wondering is it working? Why is it just doing nothing!!? A check of .set errorInfo won't tell you a thing because there was no error.<br><br>To get information from google images nowadays you have to actually get your code dirty (read as: more complicated) to parse the body of the html, such as incith's google script does.  This is why you are being told to use it instead, and most importantly, why no one has offered up any script fixes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 20, 2007 7:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[indro]]></name></author>
		<updated>2007-06-20T07:05:21-04:00</updated>

		<published>2007-06-20T07:05:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73708#p73708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73708#p73708"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73708#p73708"><![CDATA[
<blockquote class="uncited"><div>Search the Tcl Archive for <a href="http://forum.egghelp.org/viewtopic.php?t=10175" class="postlink">incith:google</a>. It's not complicated to setup, and it works!</div></blockquote>Problem is not that incith script are complicate, I example dont like it because this gives 3 answers but I want only one:(<br>I`m pretty sure that here are people who can fix this script, maybe somone will do this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9031">indro</a> — Wed Jun 20, 2007 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-18T21:26:47-04:00</updated>

		<published>2007-06-18T21:26:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73658#p73658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73658#p73658"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73658#p73658"><![CDATA[
Search the Tcl Archive for <a href="http://forum.egghelp.org/viewtopic.php?t=10175" class="postlink">incith:google</a>. It's not complicated to setup, and it works!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jun 18, 2007 9:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Real]]></name></author>
		<updated>2007-06-18T13:41:07-04:00</updated>

		<published>2007-06-18T13:41:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73648#p73648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73648#p73648"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73648#p73648"><![CDATA[
There's still no fix for this. Other scripts seem to be too complicated for me.<br><br>No one has a decent solution for this? <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=4669">Real</a> — Mon Jun 18, 2007 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[indro]]></name></author>
		<updated>2007-05-29T07:12:49-04:00</updated>

		<published>2007-05-29T07:12:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73130#p73130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73130#p73130"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73130#p73130"><![CDATA[
<blockquote class="uncited"><div>Most likely website changed..  If the author of that script doesn't want to support it, there's always the google script from Incith and Madwoota, who are both active on this forum and actively developing their google script.</div></blockquote>Incith and Madwoota scripts are nice, but I love this script because it simpel.<br><br>I think, google changed his path or smth - maybe somebody can fix this script, thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9031">indro</a> — Tue May 29, 2007 7:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-05-14T21:07:26-04:00</updated>

		<published>2007-05-14T21:07:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72769#p72769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72769#p72769"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72769#p72769"><![CDATA[
Most likely website changed..  If the author of that script doesn't want to support it, there's always the google script from Incith and Madwoota, who are both active on this forum and actively developing their google script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon May 14, 2007 9:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Real]]></name></author>
		<updated>2007-05-14T16:30:48-04:00</updated>

		<published>2007-05-14T16:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72762#p72762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72762#p72762"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72762#p72762"><![CDATA[
I emailed him, but unfortunately no response (yet).<br><br>Does anyone have a clue what might be the problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4669">Real</a> — Mon May 14, 2007 4:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sjok]]></name></author>
		<updated>2007-05-13T12:05:11-04:00</updated>

		<published>2007-05-13T12:05:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72740#p72740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72740#p72740"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72740#p72740"><![CDATA[
I have the exact same problem, one day it just stopped working. The google function still works but the image function just died. anyhow i hope someone will fix it, we need some image abuse back in our channel  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8992">sjok</a> — Sun May 13, 2007 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-05-08T13:37:30-04:00</updated>

		<published>2007-05-08T13:37:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72606#p72606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72606#p72606"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72606#p72606"><![CDATA[
by analogue - <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>His site is up and running, so I would assume he's still at that email address and still supporting his scripts. Contact the author.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue May 08, 2007 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Real]]></name></author>
		<updated>2007-05-07T16:01:15-04:00</updated>

		<published>2007-05-07T16:01:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72596#p72596</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72596#p72596"/>
		<title type="html"><![CDATA[[google.tcl] !image doesn't work anymore?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72596#p72596"><![CDATA[
Howdy. I have a problem with my google.tcl script. For some reason my !image command doesn't do anything anymore. I suspect this has something to do with Google changing something to their website, perhaps?<br><br>My bot doesn't return any errors when using the !image command. I've tried disabling all other scripts, but nothing helps.<br><br>I'm pretty sure I didn't change <em class="text-italics">anything</em> to my eggdrop configuration or scripts whatsoever.<br><br>!google still works fine.<br><div class="codebox"><p>Code: </p><pre><code># google.tcl v0.2.2## !google keywords - displays the first related website found from google in the channel# !image keywords  - displays the first related image found on google in the channel# !file keywords   - displays the first mirror download link found on filemirrors in the channel## by analogue - analogue@glop.org - http://www.glop.org/package require httpbind pub - !google pub:googlebind pub - !image pub:imagebind pub - !file pub:fileset agent "Mozilla"proc pub:google { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"} else {set query "http://www.google.de/search?btnI=&amp;q="for { set index 0 } { $index&lt;[llength $arg] } { incr index } {set query "$query[lindex $arg $index]"if {$index&lt;[llength $arg]-1} then {set query "$query+"}}# putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]# puts stderr ""upvar #0 $token stateset max 0foreach {name value} $state(meta) {if {[regexp -nocase ^location$ $name]} {set newurl [string trim $value]putserv "PRIVMSG $channel :$newurl"}}}}proc pub:image { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"} else {set query "http://images.google.de/images?btnI=&amp;q="for { set index 0 } { $index&lt;[llength $arg] } { incr index } {set query "$query[lindex $arg $index]"if {$index&lt;[llength $arg]-1} then {set query "$query+"}}append query &amp;imgsafe=off# putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]# puts stderr ""upvar #0 $token stateset max 0foreach {name value} $state(meta) {if {[regexp -nocase ^location$ $name]} {set starturl "http://"set newurl [string trim $value]set newurl [string range $newurl [expr [string first = $newurl]+1] [expr [string first &amp; $newurl]-1]]append starturl $newurlputserv "PRIVMSG $channel :$starturl"}}}}proc pub:file { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes un nom de fichier boulet !"} else {set query "http://www.filemirrors.com/find.src?file="set query "$query[lindex $arg 0]"# putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]set html  [http::data $token]# puts stderr ""upvar #0 $token stateset max 0# foreach {name value} $state(meta) {# putserv "PRIVMSG $channel :$value"# }# putserv "PRIVMSG $channel :$html"set result "[lindex $html 1]"set result [string range $result [expr [string first = $result]+2] [expr [string first &gt; $result]-2]]putserv "PRIVMSG $channel :$result"}}putlog "\0033google.tcl By aNa|0Gue Loaded"</code></pre></div>Anyone else with the same problem maybe?<br><br>Thanks a bunch. <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=4669">Real</a> — Mon May 07, 2007 4:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
