| View previous topic :: View next topic |
| Author |
Message |
Koepi Voice
Joined: 31 Aug 2003 Posts: 26
|
Posted: Tue Dec 06, 2005 12:09 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
minted Halfop
Joined: 20 Jul 2005 Posts: 64
|
Posted: Tue Dec 06, 2005 1:49 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Koepi Voice
Joined: 31 Aug 2003 Posts: 26
|
Posted: Tue Dec 06, 2005 1:55 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Tue Dec 06, 2005 1:56 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Wed Dec 07, 2005 3:26 am Post subject: |
|
|
| 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: | 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: | source scripts/incith-google.tcl
set global-chanset { +google } |
*phew*
-madwoota |
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Thu Dec 08, 2005 1:34 am Post subject: |
|
|
[quote="madwoota"] | 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: | 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... |
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Thu Dec 08, 2005 1:39 am Post subject: |
|
|
| 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: | [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 |
|
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Thu Dec 08, 2005 1:40 am Post subject: |
|
|
| 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: | [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 |
|
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Thu Dec 08, 2005 11:13 am Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
|
| Back to top |
|
 |
Digerati Voice
Joined: 05 Dec 2005 Posts: 2
|
Posted: Fri Dec 09, 2005 5:26 pm Post subject: |
|
|
There is another small parsing bug in v1.7.3:
When I send "!g define:turing test", the result is:
| Code: | | <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...").  |
|
| Back to top |
|
 |
OmegaII Voice
Joined: 11 Dec 2005 Posts: 1
|
Posted: Sun Dec 11, 2005 1:17 pm Post subject: tcl_endOfWord |
|
|
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: |
[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. |
|
| Back to top |
|
 |
v00j00 Voice
Joined: 18 Dec 2005 Posts: 4
|
Posted: Sun Dec 18, 2005 9:05 am Post subject: |
|
|
I too am getting the %20.
I fixed a little bit of it, but I don't know about the other..
| Code: | [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: | | append link "( http://www.google.com/search?hl=${incith::google::language}&q=${define_input} )" |
to
| Code: | | append link "(http://www.google.com/search?hl=${incith::google::language}&q=${define_input})" |
the result is this
| Code: | [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. |
|
| Back to top |
|
 |
anotheregglover Voice
Joined: 13 Jan 2005 Posts: 38
|
|
| Back to top |
|
 |
apache- Voice
Joined: 19 Dec 2005 Posts: 1
|
Posted: Mon Dec 19, 2005 11:33 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|