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.

incith:google :)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

v00j00 wrote:I too am getting the %20.

I fixed a little bit of it, but I don't know about the other..

Code: Select all

[04:53] <v00j00> !g define:fcuk
[04:53] <zeroxstar> French Connection is a clothing company that originated in the United Kingdom, but is now available worldwide. It was founded in 1969 and sells menswear, womenswear, childrenwear and accessories aimed at a youthful demographic. @ http://en.wikipedia.org/wiki/FCUK%20(%20http://www.google.com/search?hl=en&q=define:fcuk%20)
so I removed two spaces from

Code: Select all

append link "( http://www.google.com/search?hl=${incith::google::language}&q=${define_input} )"
to

Code: Select all

append link "(http://www.google.com/search?hl=${incith::google::language}&q=${define_input})"
the result is this

Code: Select all

[04:55] <v00j00> !g define:fcuk
[04:55] <zeroxstar> French Connection is a clothing company that originated in the United Kingdom, but is now available worldwide. It was founded in 1969 and sells menswear, womenswear, childrenwear and accessories aimed at a youthful demographic. @ http://en.wikipedia.org/wiki/FCUK%20(http://www.google.com/search?hl=en&q=define:fcuk) 
But there still one extra %20 between the url and the google search url that I don't know how to get rid of ^_^

I hope this helps.
Thanks and appreciate the hardwork! Looking forward to another release.
And this:

!Video sex

Code: Select all

[13:40:22] <@MyBot>    "Rubber" - a TV ad for promoting the use of condoms  @ http://video.google.com/videoplay?docid=1965553783363492662 |    The ABC's of Sex education for trainables  @ http://video.google.com/videoplay?docid=-2987243478639579087 |    hyun bin says that sex is sometimes boring  @ http://video.google.com/videoplay?docid=6152531848936764085 |    God Save the Queen Cover - Live  @ http://video.google.com/videoplay?docid=2908051806013199473
r
r99t
Voice
Posts: 1
Joined: Tue Oct 18, 2005 6:51 am

Post by r99t »

I have:

Eggdrop 1.6.17
http-2.5.tcl
incith-google.tcl 1.7

My Problem is this:

[08:56] [@nick]: !g r99t
[08:56] [@bot]: Translate this page @ http://translate.google.com/translate?hl=en&sl=de&u=URL | Translate this page @ http://translate.google.com/translate?hl=en&sl=de&u=URL | Translate this page @
[08:56] [@bot]: http://translate.google.com/translate?hl=en&sl=de&u=URL | Translate this page @ http://translate.google.com/translate?hl=en&sl=de&u=URL

Why will the Script translate this pages? My language normally is german, so i have set it to 'de' but its the same. if i do the triggers, the bot want always translate. Why. Can any1 help me?
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

error when trying to use this addon with windrop
using http 2.5.2
incith-google 1.7.3

heres error output:

Tcl error [incith::google::public_message]: invalid command name "tcl_endOfWord"

set errorInfo
Currently: invalid command name "tcl_endOfWord"
Currently: while executing
Currently: "tcl_endOfWord $input 0"
Currently: (procedure "send_output" line 26)
Currently: invoked from within
Currently: "send_output "$input" "$chan" "$nick" "$uhand""
Currently: (procedure "incith::google::public_message" line 3)
Currently: invoked from within
Currently: "incith::google::public_message $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"

while searching anything i get this error, no output given in the channel
am i doing anything wrong?
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Hi all !
Its time to release incith:google v1.8 !

Yes, its been a while between updates and I've gone a bit quiet the last couple weeks, but sometimes real life just seems to overwhelmingly intrude.
Things like moving house, changing rooms (twice), a new pc (w00t!), a new desk, a new server, recabling the house, xmas, holidays, etc etc, it all makes for some unproductive coding days ...
8)

And... It's hot. Damn hot! Real hot!


Anyway, I'm sure most of you dont care about that, so I'll just get on with the new release :)

From the changelog:
- added option to turn on "safe" searches
- added channel user level filtering option (+v/+h/+o only)
- added google fight! !gf or !fight <blah> vs <blah> (inspired by www.googlefight.com)
- added ability to do any custom mode to descs & links (i'll just apologise now for this one)
- removed variable underline_links (superseded by above)
- removed use of 'tcl_endOfWord' to stop windrop breaking
- fixed excess %20's appearing in some results
- fixed "translate this" only returns ? (i think)
- stopped local from returning ad spam on first result


I think that addresses most of the bugs/requests in the last page or two, so if you find something still doesnt work, let me know.

incith:google v1.8 available here:
http://www.woota.net/~madwoota/incith-g ... ent.tar.gz

Regards,
-madwoota
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

sorry, forgot to post a feedback. v1.8 works fine ;) no errors found until this time. nice work :)
c
c00ljim
Voice
Posts: 4
Joined: Fri Jan 13, 2006 5:26 am

Post by c00ljim »

madwoota wrote:Hi all !
Its time to release incith:google v1.8 !

Yes, its been a while between updates and I've gone a bit quiet the last couple weeks, but sometimes real life just seems to overwhelmingly intrude.
Things like moving house, changing rooms (twice), a new pc (w00t!), a new desk, a new server, recabling the house, xmas, holidays, etc etc, it all makes for some unproductive coding days ...
8)

And... It's hot. Damn hot! Real hot!


Anyway, I'm sure most of you dont care about that, so I'll just get on with the new release :)

From the changelog:
- added option to turn on "safe" searches
- added channel user level filtering option (+v/+h/+o only)
- added google fight! !gf or !fight <blah> vs <blah> (inspired by www.googlefight.com)
- added ability to do any custom mode to descs & links (i'll just apologise now for this one)
- removed variable underline_links (superseded by above)
- removed use of 'tcl_endOfWord' to stop windrop breaking
- fixed excess %20's appearing in some results
- fixed "translate this" only returns ? (i think)
- stopped local from returning ad spam on first result


I think that addresses most of the bugs/requests in the last page or two, so if you find something still doesnt work, let me know.

incith:google v1.8 available here:
http://www.woota.net/~madwoota/incith-g ... ent.tar.gz

Regards,
-madwoota
well i am having zero luck with this latest release, and i cant see where to turn on debugging, so i can see why its failing or not producing results. When I type !google whatever in channel ? my results are always;
acouple of examples here;

[04:16] <@ceejay> !google weather 18353
[04:16] <@c0ffee4me> Sorry, no search results were found.

[04:31] <@ceejay> !google pizza hut near saylorsburg
[04:31] <@c0ffee4me> Sorry, no search results were found.

[04:41] <@ceejay> !google convert
[04:41] <@c0ffee4me> Sorry, no search results were found.

etc, etc.................................
c
c00ljim
Voice
Posts: 4
Joined: Fri Jan 13, 2006 5:26 am

apologies

Post by c00ljim »

works great, did a system reboot
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Ah hah, its the "Outsourced our tech support call centre to just tell customers to reboot their computer" style solution !

It works far too often for it to really be a joke though :)

PS: Sounds like your http package wasnt getting to google and was returning junk or something, so the script wasnt finding anything.
k
kretek
Voice
Posts: 3
Joined: Sat Jan 28, 2006 6:59 pm

Post by kretek »

Then I ask bot for something, i always get this error in partyline:
Tcl error [incith::google::public_message]: unknown encoding "ascii"

Can you tell me what it's wrong?

EDIT: when i write something on channel, i get in partyline this tcl error too.
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

That sounds like an odd bug I saw when testing the script against Windrop a while ago, but I havent seen since.

From memory a bot shutdown & restart fixed it.

I'd need some more details if that doesnt help though, like eggdrop version (or windrop?), tcl lib version and OS etc.
k
kretek
Voice
Posts: 3
Joined: Sat Jan 28, 2006 6:59 pm

Post by kretek »

madwoota wrote:That sounds like an odd bug I saw when testing the script against Windrop a while ago, but I havent seen since.

From memory a bot shutdown & restart fixed it.

I'd need some more details if that doesnt help though, like eggdrop version (or windrop?), tcl lib version and OS etc.
eggdrop 1.6.12 precompiled with tcl 8.3,
Linux mars 2.6.13-15.7-smp #1 SMP (...) i686 i686 i386 GNU/Linux, I think it's SUSE 10.
After bot restart I still have this tcl "ascii"error.

EDIT: I changed to eggdrop 1.6.17 i686 redhat8.0 Linux2.4.23 tcl 8.4.7 gcc3.2 / glibc2.3.2
shell: cc --version : GCC 4.0.2 20050901 (prerelease) (SUSE Linux)

And I still have this strange Tcl error [incith::google::public_message]: unknown encoding "ascii".

Looks like it's something with my shell account and tcl :/
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

kretek wrote:Looks like it's something with my shell account and tcl :/
Unfortunately, I'd have to agree with you.

I've yet to come across a TCL lib without a whole raft of system encodings, although it depends entirely on how well the tcl lib was setup.

If you have access, check and see if the file "ascii.enc" exists in a subdir under your tcl lib dir.

Eg, its likely to be in: /usr/lib/tcl8.?/encoding/ascii.enc
Or wherever your /lib/tcl8.# dir is.

Code: Select all

$:/usr/lib/tcl8.4/encoding# ls -l | wc -l
79
So, I have 79 encoding sets/files in that directory, perhaps you have very few/none. If you do not have, or cannot find the file "ascii.enc", then I would suggest your install of tcl lib itself is corrupt/worthless.

Another option is to type the "tclsh" command from the shell command prompt. When you get the "%" prompt from it, type "encoding names" and you should end up with a list like this:

Code: Select all

$:/# tclsh
% encoding names
cp860 cp861 cp862 cp863 tis-620 cp864 cp865 cp866 gb2312-raw gb12345 cp949 cp950 cp869 dingbats ksc5601 macCentEuro cp874 macUkraine jis0201 gb2312 euc-cn euc-jp macThai iso8859-10 jis0208 iso2022-jp macIceland iso2022 iso8859-13 jis0212 iso8859-14 iso8859-15 cp737 iso8859-16 big5 euc-kr macRomania macTurkish gb1988 iso2022-kr macGreek ascii cp437 macRoman iso8859-1 iso8859-2 iso8859-3 macCroatian koi8-r iso8859-4 ebcdic iso8859-5 cp1250 macCyrillic iso8859-6 cp1251 macDingbats koi8-u iso8859-7 cp1252 iso8859-8 cp1253 iso8859-9 cp1254 cp1255 cp850 cp1256 cp932 identity cp1257 cp852 macJapan cp1258 shiftjis utf-8 cp855 cp936 symbol cp775 unicode cp857
System character encoding sets are very important :)
Or, hell, if you are able, you could just try the script on an alternate shell :)

-madwoota
l
lefkas
Voice
Posts: 2
Joined: Mon Feb 13, 2006 3:37 am

Post by lefkas »

Hello!

Excuse a n00bish question but.. can i get this nice script working with blowfish?

Cheers
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Not sure exactly where you're aiming for with that, but blowfish is a required module with eggdrop, used to disguise passwords and such.

This script will happily co-exist with it since they are both independant of each other.
l
lefkas
Voice
Posts: 2
Joined: Mon Feb 13, 2006 3:37 am

Post by lefkas »

Well i use blowfish in channel and then the !google wont work,
If i remove key it works :\
Post Reply