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
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

hi madwoota,

one request again ;)

can you make a option to choise, if this sript work on all channels the bot is in or only in +google channels?

greets Koepi
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

just type .chanset * +google on the partyline and it will be active in all channels. enabling the script to work with chanset is the most convinient way, and takes about 2 seconds to do.
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

yes i know, but my bot joins automatically channels after invite by other users. so it would by nice if can set it on for all new channels.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

Hey!
Script is AWESOME...

but I have the same problem as the brazilian user. I am from Portugal...
Also, a %20 (space right?) shows up before the links?

Also, in the next version, can you make it simpler for a user to choose the colors of the output and replace the link underline/bold/color/whateveroneslikes?
I must do this manually every time...
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Digerati wrote: <dBot> Subspace Continuum - Freeware Game @ /url?sa=X&revid=1782563160&qpos=0&upos=0&oi=revisions_inline&q=http://beginners.subspace.net/%20
Fixed in next version. Yay for new google features :)

testebr wrote:My problem continues...
testebr - I still need you to provide me with an example of what you searched for.
Also, you have setup the config file a little oddly. While it may work somewhat, you should not necessarily be replacing the line "package require http" with "source lib/.../http.tcl".
The preferred way to do this on WinDrop is to source the http.tcl file BEFORE you source the incith-google.tcl file in your main eggdrop .conf file. The way you've done it is untested and may have other side effects, so please try it this way first:

Code: Select all

source scripts/http.tcl
source scripts/incith-google.tcl
Thunderdome wrote:I am from Portugal...
Also, a %20 (space right?) shows up before the links?
That should not be possible :)
Please provide an example of what you searched for to produce this result.

Thunderdome wrote:Also, in the next version, can you make it simpler for a user to choose the colors of the output and replace the link underline/bold/color/whateveroneslikes?
I was already doing a cleanup of the underline/bolding code in the next major version. It will include options to put whatever codes you like (bold/colours/underline/reverse on either descs or links).

Koepi wrote:yes i know, but my bot joins automatically channels after invite by other users. so it would by nice if can set it on for all new channels.
Just set the channel flag +google in the global (default) channel settings in yer .conf file.
(Probably need to do that after sourcing scripts/incith-google.tcl though.)
Something like this:

Code: Select all

source scripts/incith-google.tcl
set global-chanset { +google }

*phew* :)
-madwoota
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

madwoota wrote:
Digerati wrote:
testebr wrote:My problem continues...
testebr - I still need you to provide me with an example of what you searched for.
Also, you have setup the config file a little oddly. While it may work somewhat, you should not necessarily be replacing the line "package require http" with "source lib/.../http.tcl".
The preferred way to do this on WinDrop is to source the http.tcl file BEFORE you source the incith-google.tcl file in your main eggdrop .conf file. The way you've done it is untested and may have other side effects, so please try it this way first:

Code: Select all

source scripts/http.tcl
source scripts/incith-google.tcl
Congratulations, You win! ehhehe work fine now.

One sugestion: If one user want make one search by country in google, it is possible you make this option? Example...

!google <<< search in google world/usa (global)

!google_lang_pt word <<< search in google Portugal

!google_lang_br word <<< search in google Brazil

!google_lang_ca word <<< search in google Canada

!google_lang_jp word <<< search in google Japan

Or anything like this trigger...
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

madwoota wrote:
Thunderdome wrote:I am from Portugal...
Also, a %20 (space right?) shows up before the links?
That should not be possible :)
Please provide an example of what you searched for to produce this result.
Same problem here, see:

Code: Select all

[03:35:42] <mynick> !video sexo
[03:35:49] <mybot>    El tercer sexo  @ http://video.google.com/videoplay?docid=7297646181828304461 |    Fútbol v/s Sexo  @ http://video.google.com/videoplay?docid=7517383051080380122 |    Jel Instrutor do Sexo  @ http://video.google.com/videoplay?docid=8658110220434104645 |    Esclavas del sexo  @ http://video.google.com/videoplay?docid=5842014320704075789
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

madwoota wrote:
Thunderdome wrote:I am from Portugal...
Also, a %20 (space right?) shows up before the links?
That should not be possible :)
Please provide an example of what you searched for to produce this result.
Same problem here, see:

Code: Select all

[03:35:42] <mynick> !video sexo
[03:35:49] <mybot>    El tercer sexo  @ http://video.google.com/videoplay?docid=7297646181828304461 |    Fútbol v/s Sexo  @ http://video.google.com/videoplay?docid=7517383051080380122 |    Jel Instrutor do Sexo  @ http://video.google.com/videoplay?docid=8658110220434104645 |    Esclavas del sexo  @ http://video.google.com/videoplay?docid=5842014320704075789
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

I've solved it... it was an extra space I used as the separator... (I changed the separator)... but I am not really sure, anyway it's gone...

But that changing the colors possibility would be awesome! :D
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

You update the packpage in this url http://www.woota.net/~madwoota/incith-g ... ent.tar.gz or where we can get the latest version?

I get this file and the version still the same v1.7.3
D
Digerati
Voice
Posts: 2
Joined: Mon Dec 05, 2005 3:42 am

Post by Digerati »

There is another small parsing bug in v1.7.3:

When I send "!g define:turing test", the result is:

Code: Select all

<dBot> A hypothetical test for computer intelligence, proposed by Alan Turing in 1950, involving a computer program generating a conversation which could not be distinguished from that of a real human. @ http://www.informatics.susx.ac.uk/books/computers-and-thought/gloss/node1.html%20(%20http://www.google.com/search?hl=all&q=define:turing+test%20)
Might want to remove that last part ("%20(%20http://www.google..."). :)
O
OmegaII
Voice
Posts: 1
Joined: Sun Dec 11, 2005 1:14 pm

tcl_endOfWord

Post by OmegaII »

I get an error after the bot has been up for a while / rehashed a few times. I'm not sure yet wheter the rehashing has something to do with it.

Anyway I get the following error:

Code: Select all

[18:02] Tcl error [incith::google::public_message]: invalid command name "tcl_endOfWord"
When I start the bot all works fine, but after a while when I want to trigger the script I get that error.

Any idea's where the problem could be ?

Edit:
Apparently freshmint.tcl screws things up. After some testing and disabling this script it keeps working fine after several rehashes.
Too bad cause freshmint really is needed with the "ghosting" eggdrop does.
v
v00j00
Voice
Posts: 4
Joined: Sun Dec 18, 2005 8:59 am

Post by v00j00 »

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.
a
anotheregglover
Voice
Posts: 38
Joined: Thu Jan 13, 2005 12:01 am
Contact:

Post by anotheregglover »

I would like to suggest an additional command, !google torrent <search terms> or !torrent <search terms> which employed the search variable "filetype:torrent inurl:<search terms>"

For example: filetype:torrent inurl:debian

http://www.google.com/search?num=15&hl= ... tnG=Search

a
apache-
Voice
Posts: 1
Joined: Mon Dec 19, 2005 11:30 am

Post by apache- »

hey all
got a small prob with the search script
when i search for example
!google test
all i get back is
Google Book Search @ http://books.google.com/books? etc etc etc
what am i doing wrong?
what do i have to input to mkae it bring up the correct google web results?
cheers
The very latest PC Game news and PC trainers
www.gamehacking.co.uk
Post Reply