| View previous topic :: View next topic |
| Author |
Message |
cg Voice
Joined: 30 Jun 2009 Posts: 8
|
Posted: Sun Jan 17, 2010 6:59 pm Post subject: |
|
|
Thanks Speechles, removing gzip and rehash fixed this for me also.
Your time is appreciated. |
|
| Back to top |
|
 |
pogue Voice

Joined: 17 May 2009 Posts: 28
|
Posted: Sun Jan 17, 2010 8:31 pm Post subject: |
|
|
| pogue wrote: | Finally, there is a minor error when doing a currency conversion and no debug result was returned.
| Code: | [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? |
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. |
| 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.
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.
| 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:"). |
Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,
pogue _________________ Helpful Tools:
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jan 17, 2010 8:54 pm Post subject: |
|
|
| 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. |
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.
The reason you can do this is so you can localize searches to a specific domain.
http://www.google.de/linux
Clicking the above url will localize your results to germany and localize them even further to those about linux. The easiest way to make this as simple for users as possible is to keep these in line with the way the script already handles localizing.
!g .de something - localizes to germany searching for something
!g .de/linux something - localizes to germany as well as localizing to linux and searching for something
As you can see this makes it intuitive for your users, and quite easy to incorporate into custom-trigger-phrases so that you can craft your own triggers to extend this functionality to users without encumbering them with so much to type. Every server which google localizes results to can be accessed using this script. Hope you understand..
| 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.  |
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: | Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,
pogue |
The purpose of the script is merely to be useful. I'm glad you like it. I like it too.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
jaztys Voice
Joined: 21 Jan 2010 Posts: 3
|
Posted: Thu Jan 21, 2010 7:15 am Post subject: |
|
|
| Quote: |
<jaztys> !youtube funny
<jaztys> !youtube .com funny
<jaztys> !youtube .en funny
<jazzty> Socket Error accessing 'http://co.in.youtube.com/results?search_query=funny&hl=co.in&ie=utf-8' .. Does it exist?
|
am i missing something? wht to do?
| Quote: |
<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
|
bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks |
|
| Back to top |
|
 |
shadrach Halfop
Joined: 14 Dec 2007 Posts: 74
|
Posted: Sat Jan 23, 2010 7:52 am Post subject: |
|
|
Any chance of replacing the mininova search with a different index since the range of desirable torrents has dwindled at mn since it's change in policy. I know there is a custom search via google but it doesn't have the detailed info that the dedicated mn search returned.  |
|
| Back to top |
|
 |
luminoso Voice
Joined: 02 Jul 2007 Posts: 7
|
Posted: Tue Feb 02, 2010 5:58 pm Post subject: |
|
|
| jaztys wrote: |
| Quote: |
<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
|
bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks |
remove trf package from your system. it's related |
|
| Back to top |
|
 |
shadrach Halfop
Joined: 14 Dec 2007 Posts: 74
|
Posted: Wed Feb 03, 2010 5:19 pm Post subject: |
|
|
news isn't working (
| Code: | [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); |
|
|
| Back to top |
|
 |
jaztys Voice
Joined: 21 Jan 2010 Posts: 3
|
Posted: Fri Feb 26, 2010 1:19 am Post subject: |
|
|
| Quote: | [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? |
|
| Back to top |
|
 |
x-y-no Voice
Joined: 09 Aug 2009 Posts: 7 Location: Fort Lauderdale, FL
|
Posted: Fri Feb 26, 2010 2:57 pm Post subject: |
|
|
| jaztys wrote: | | Quote: | [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? |
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"
EDIT: Although looking at some of the posts just above, maybe this isn't a good idea. Appears it may cause other problems. I'd say leave it alone unless you're actually seeing failures on your wiki searches. |
|
| Back to top |
|
 |
pogue Voice

Joined: 17 May 2009 Posts: 28
|
Posted: Fri Feb 26, 2010 4:22 pm Post subject: |
|
|
| jaztys wrote: | | Quote: | [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?
On line 1122 of the script set use_gzip to 0 and see if that doesn't help.
| Code: | # 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 |
_________________ Helpful Tools:
|
|
| Back to top |
|
 |
[SkG] Voice
Joined: 25 Oct 2009 Posts: 2
|
Posted: Sun Feb 28, 2010 8:16 am Post subject: |
|
|
Hi! I'm getting the same problem as jaztys.
I get an error msg when I perform a search in youtube, other search like youtube or wikipedia are working:
| Code: | | Tcl error [incith::google::public_message]: list must have an even number of elements |
I have not tcl-trf installed (I uninstalled it) and I put use_gzip to 0. If I put use_gzip with and without trf (with zlib installed) google search dont work.
| Code: | | Tcl error [incith::google::public_message]: can't read "state(body)": no such variable |
Then my situation is the following:
-Using 1.9.9x
- Dont have tcl-trf
- use_gzip 0
- Google, wikipedia, ... workin
- Youtube throws "list number of elements" error
Any hint to solve this?
| Code: |
Debian squeeze
Linux 2.6.30-2-amd64/x86_64
Eggdrop v1.6.19 + UTF-8 + SSL
|
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Feb 28, 2010 12:27 pm Post subject: |
|
|
So many things broke... !news, !game, and !review all seem to have just gone away. Well, I'm here to fix all that. They now work as well as they did before.
Get it here: Incith:Google v1.9.9y
Enjoy, and most important, have a fun  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Mar 20, 2010 1:32 pm Post subject: |
|
|
With this latest version I get party line errors
| Code: | | Tcl error [incith::google::public_message]: can't read "incith::google::local_binds": no such variable |
|
|
| Back to top |
|
 |
ipbegg Voice
Joined: 14 Jun 2009 Posts: 11
|
Posted: Sat Mar 20, 2010 7:59 pm Post subject: |
|
|
[00:59] Tcl error [incith::google::public_message]: couldn't open "ig-debug.txt": permission denied
whats that?  |
|
| Back to top |
|
 |
Ewinz87 Voice
Joined: 25 Mar 2010 Posts: 1
|
Posted: Thu Mar 25, 2010 2:42 am Post subject: |
|
|
Many triggers aren't working for me. Using latest v1.99y but was also having same problem with x version.
Here's the error I get for !ebayfight:
| Code: | Tcl error [incith::google::public_message]: missing operand at _@_
in expression "_@_<div>118801 < <div>112..." |
Translate, Wikipedia, Wikimedia:
| Code: | | Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent |
Ebay, Scholar doesn't work and get no error. |
|
| Back to top |
|
 |
|