This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

UNOFFICIAL incith-google 2.1x (Nov30,2o12)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
c
cg
Voice
Posts: 8
Joined: Tue Jun 30, 2009 7:54 pm

Post by cg »

Thanks Speechles, removing gzip and rehash fixed this for me also. :)
Your time is appreciated.
User avatar
pogue
Voice
Posts: 28
Joined: Sun May 17, 2009 3:56 am
Contact:

Post by pogue »

pogue wrote:Finally, there is a minor error when doing a currency conversion and no debug result was returned.

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?
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.
<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
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. :P
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:
  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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. :P
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. ;)
j
jaztys
Voice
Posts: 3
Joined: Thu Jan 21, 2010 7:07 am

Post by jaztys »

<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?
am i missing something? wht to do?
<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
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

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. :wink:
l
luminoso
Voice
Posts: 7
Joined: Mon Jul 02, 2007 7:59 am

Post by luminoso »

jaztys wrote:
<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
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

news isn't working (

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);
j
jaztys
Voice
Posts: 3
Joined: Thu Jan 21, 2010 7:07 am

Post by jaztys »

[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?
x
x-y-no
Voice
Posts: 7
Joined: Sun Aug 09, 2009 12:13 pm
Location: Fort Lauderdale, FL

Post by x-y-no »

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?
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.
User avatar
pogue
Voice
Posts: 28
Joined: Sun May 17, 2009 3:56 am
Contact:

Post by pogue »

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?

On line 1122 of the script set use_gzip to 0 and see if that doesn't help.

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
Helpful Tools:
  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
[
[SkG]
Voice
Posts: 2
Joined: Sun Oct 25, 2009 6:38 am

Post by [SkG] »

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: Select all

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: Select all

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: Select all

Debian squeeze
Linux 2.6.30-2-amd64/x86_64
Eggdrop v1.6.19 + UTF-8 + SSL
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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 :P
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

With this latest version I get party line errors

Code: Select all

Tcl error [incith::google::public_message]: can't read "incith::google::local_binds": no such variable
i
ipbegg
Voice
Posts: 11
Joined: Sun Jun 14, 2009 7:44 am

Post by ipbegg »

[00:59] Tcl error [incith::google::public_message]: couldn't open "ig-debug.txt": permission denied

whats that? :?
E
Ewinz87
Voice
Posts: 1
Joined: Thu Mar 25, 2010 2:09 am

Post by Ewinz87 »

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: Select all

Tcl error [incith::google::public_message]: missing operand at _@_
in expression "_@_<div>118801 < <div>112..."
Translate, Wikipedia, Wikimedia:

Code: Select all

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.
Post Reply