pogue wrote:Finally, there is a minor error when doing a currency conversion and no debug result was returned.
As you can see, it appends the query with a period in it into the google URL and attempts to use that as the domain to search from. If someone does a search with 0.XYZ instead of .XYZ it works fine though.Code: Select all
[11:15pm] <~pogue> !g .093985 USD to CAD [11:15pm] <+BodyBuildingBot> Socket Error accessing 'http://www.google.093985/search?q=USD%20to%20CAD&safe=on&lr=lang_all&num=3&ie=utf-8' .. Does it exist?
speechles wrote:This is actually a feature of the script. As google adds new regional servers, the script automatically supports them. The _next_ version will also support google's special searches found here. A small example quoted below.
I did not realize that feature was even there, and I'm still a little confused about how to use this. Is this similar to the google site search "site:" query? Although returned from your example bot above are showing them from Wikipedia too.<speechles> !g .com/linux eggdrop
<sp33chy>Google | eggdrop | freshmeat.net @ http://freshmeat.net/projects/eggdrop/ | mIRCStats Eggdrop Logger @ http://mel.sourceforge.net/ | Eggdrop | Get Eggdrop at SourceForge @ http://sourceforge.net/projects/eggdrop/
<speechles> !g .com/microsoft windows
<sp33chy>Google | Microsoft Windows: Windows 7, Windo @ http://www.microsoft.com/WINDOWS/ | Microsoft Windows - Wikipedia, the fre @ http://en.wikipedia.org/wiki/Microsoft_Windows | Windows home - Microsoft Windows @ http://windows.microsoft.com/
<speechles> !g .nl/microsoft windows
<sp33chy> Google | Microsoft Nederland @ http://www.microsoft.com/netherlands/ | Microsoft Windows - Wikipedia @ http://nl.wikipedia.org/wiki/Microsoft_Windows | Startpagina Windows 7 - Microsoft Windows @ http://windows.microsoft.com/nl-nl/wind ... me?os=win7
<speechles> !g .com/univ/mit rainbows
<sp33chy>Google | Polarization: Light Waves, Rainbows, a @ http://mitworld.mit.edu/video/74 | Scratch | Project | Rainbows!!! @ http://scratch.mit.edu/projects/hippiegirl/834715 | CD REVIEW 'In Rainbows' a Lofty, Beaut @ http://tech.mit.edu/V127/N45/radiohead.html
Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,speechles wrote:Expect the new version either today (with "spell:" left as an English only token for the moment) or tomorrow (with some clever symbol or something used to replace the English "spell:").
Not at all, the "site:" modifier is merely a search token, same as "inurl:", "ext:", etc... These merely modify your search results to fit the tokens given.pogue wrote:I did not realize that feature was even there, and I'm still a little confused about how to use this. Is this similar to the google site search "site:" query? Although returned from your example bot above are showing them from Wikipedia too.
I planned on formalizing some type of documentation to go along with this script as well as seperating the config from the script so users don't need to reconfigure the entire script every update. But these plans fall by the wayside as fixing bugs and implementing more features (read this as bells and whistles) is more motivating to accomplish.pogue wrote:I expect O'Reilly might ask you to write a book on this script in the near future so we can make use of all the functionality in it. Incith's Google for Eggdrops by speechles with a picture of a lithographed rabbit on the cover or something.
The purpose of the script is merely to be useful. I'm glad you like it. I like it too.pogue wrote:Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,
pogue
am i missing something? wht to do?<jaztys> !youtube funny
<jaztys> !youtube .com funny
<jaztys> !youtube .en funny
<jazzty> Socket Error accessing 'http://co.in.youtube.com/results?search ... n&ie=utf-8' .. Does it exist?
bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
remove trf package from your system. it's relatedjaztys wrote:bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
Code: Select all
[20:30:31] [@xvxvx !news test
[20:30:34] [@vxvxv] 173,357 Results
[20:30:35] [@vxvxv] </a> <a target="_blank" class="usg-AFQjCNELWSMEyxBFpNg_2E-CC3A7FLGnrw " href=" (Seattle Times - 57 minutes ago) @ javascript:void(0);
I've yet to see a page it fails on, but if you want to make this message go away the rpm you need to install is "tcl-trf" and maybe also "tcl-trf-devel"jaztys wrote:[23:11] Incith:Google unable to find zlib or trf package! Gzip disabled.
[23:11] Incith:Google requires gzip decompression with wikipedia and Wikimedia. As a result, every article will not work for you.
what will be the problem here?
Are you getting that error when you launch your egg? Or when the bot is performing a search?jaztys wrote:[23:11] Incith:Google unable to find zlib or trf package! Gzip disabled.
[23:11] Incith:Google requires gzip decompression with wikipedia and Wikimedia. As a result, every article will not work for you.
what will be the problem here?
Code: Select all
# enable gzip compression for bandwidth savings? Keep in mind
# this semi-breaks some of the present utf-8 work-arounds and
# eggdrop may mangle encodings when gzip compression that it
# doesn't when uncompressed html it used (default). A setting
# of 0 defaults to uncompressed html, a 1 or higher gzip.
# ------
# NOTE: If you do not have Trf or zlib packages setting this
# to 0 is recommened. Leaving it at 1 is fine as well, as the
# script will attempt to find these commands or packages every
# rehash or restart. But to keep gzip from ever being used it
# is best to set the below variable to 0.
# NOTE2: If you have Trf or zlib packages present, then this
# should always be set to 1. You save enormous bandwidth and
# time using this. If your bot is patched and you have Trf/zlib
# then you should definitely leave this at 1 and you will never
# suffer issues.
# ------
variable use_gzip 0
Code: Select all
Tcl error [incith::google::public_message]: list must have an even number of elements
Code: Select all
Tcl error [incith::google::public_message]: can't read "state(body)": no such variable
Code: Select all
Debian squeeze
Linux 2.6.30-2-amd64/x86_64
Eggdrop v1.6.19 + UTF-8 + SSL
Code: Select all
Tcl error [incith::google::public_message]: can't read "incith::google::local_binds": no such variable
Code: Select all
Tcl error [incith::google::public_message]: missing operand at _@_
in expression "_@_<div>118801 < <div>112..."
Code: Select all
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent