| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Aug 07, 2007 6:12 pm Post subject: |
|
|
| It shouldn't matter which country you chose to designate as the default. What might be happening tho, is you have two copies of this script in your eggdrop.conf, maybe the old one 1.9.5 and the new 1.9.6, whichever is sourced last will become dominant. If this isn't the problem, and you don't mind.. Can you please post your entire config section as you have it presently, hopefully with that I or someone else can deduce what is wrong for you. |
|
| Back to top |
|
 |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Wed Aug 08, 2007 10:44 am Post subject: |
|
|
MY FAULT - I AM SOOOOO SORRRRY ! I had loaded an old version ((
Sorry sorry.. but thanx for helping !
The Script works perfect for me - 10 of 10 Points !
greets |
|
| Back to top |
|
 |
transacid Voice
Joined: 08 Aug 2007 Posts: 12 Location: Hamburg / Germany
|
Posted: Wed Aug 08, 2007 2:21 pm Post subject: |
|
|
hey there.
I'm using v1.9.6 but get this error:
| Code: | | Socket Error accessing 'http://www.google.com/search?q=foo&safe=off&btnG=Search&lr=lang_all&num=10' .. Does it exist? |
did i do something wrong? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Aug 08, 2007 9:54 pm Post subject: |
|
|
| transacid wrote: | hey there.
I'm using v1.9.6 but get this error:
| Code: | | Socket Error accessing 'http://www.google.com/search?q=foo&safe=off&btnG=Search&lr=lang_all&num=10' .. Does it exist? |
did i do something wrong? |
Nah, that just happens when your bot cannot create a socket to the internet (bot is lagged, low bandwidth, etc). It's one of the few error messages that will always be in english because it's script created (all script created errors will only display in english, as I am an american) not dynamically read from the page like the others.
But on the lighter side, I noticed some problems with recent website changes: !news and !book specifically. These have been fixed and will now return results as usual. I've also fixed the long broken !groups parser, it will now work too. Have a FUN!
Download here or at any v1.9.6 link above, all are updated the same. |
|
| Back to top |
|
 |
mabus Voice
Joined: 17 Jun 2005 Posts: 27
|
Posted: Sun Aug 12, 2007 11:51 am Post subject: |
|
|
Tcl error [incith::google::public_message]: invalid command name "stripcodes"
In the status window of the bot, i get this message whenever i try to use the wikipedia. It's not a problem with what i'm imputting because i've tried to copy paste the exact lines displayed in here on this thread {apparently working}, but all i get is the error message. Anyone else? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Aug 12, 2007 5:25 pm Post subject: |
|
|
| mabus wrote: | Tcl error [incith::google::public_message]: invalid command name "stripcodes"
In the status window of the bot, i get this message whenever i try to use the wikipedia. It's not a problem with what i'm imputting because i've tried to copy paste the exact lines displayed in here on this thread {apparently working}, but all i get is the error message. Anyone else? |
It's an easy fix, guess you didnt read the top comments. | Code: | # tested on: #
# eggdrop v1.6.17 GNU/LINUX with Tcl 8.4 #
# windrop v1.6.17 CYGWIN_NT with Tcl 8.4 (http.tcl v2.4) # |
You need to update your eggdrop to either 1.6.17 or 1.6.18
Eggdrop 1.6.17 Notes: Added a "stripcodes" Tcl command for efficiantly removing control codes from strings (see doc/tcl-commands.doc). |
|
| Back to top |
|
 |
mabus Voice
Joined: 17 Jun 2005 Posts: 27
|
Posted: Mon Aug 13, 2007 10:15 am Post subject: |
|
|
ICK, I hate making Newbie mistakes. My apologies and thank you  |
|
| Back to top |
|
 |
mabus Voice
Joined: 17 Jun 2005 Posts: 27
|
Posted: Tue Aug 14, 2007 1:50 pm Post subject: |
|
|
Well that didn't work. Brand new Eggdrop V1.6.18 installation, same exact error message. Even installed the latest TCL V8.4.5 and Http TCL V2.5.001.
Any ideas? |
|
| Back to top |
|
 |
danzigrules Voice
Joined: 02 Aug 2007 Posts: 17
|
Posted: Tue Aug 14, 2007 7:53 pm Post subject: |
|
|
whats the trick for translate to work?
[danzigrules] !translate en @ it testing
[danzigrules] !translate en@it testing
2] Tcl error [incith::google::public_message]: Illegal characters in URL path
Thanks |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Aug 14, 2007 8:04 pm Post subject: |
|
|
| mabus wrote: | Well that didn't work. Brand new Eggdrop V1.6.18 installation, same exact error message. Even installed the latest TCL V8.4.5 and Http TCL V2.5.001.
Any ideas? |
Installed tcl8.4-dev? _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Aug 14, 2007 8:59 pm Post subject: |
|
|
| danzigrules wrote: | whats the trick for translate to work?
[danzigrules] !translate en @ it testing
[danzigrules] !translate en@it testing
2] Tcl error [incith::google::public_message]: Illegal characters in URL path
Thanks |
Oh no!
But in all honesty, that translate function is sorta limited at the moment until I figure out encodings. Pretty much the same problem every proc in this script has, it doesn't support russian and other funky charsets properly. It's hard to work a fulltime job and maintain this script at the level of sophistication it needs. It will get done soon mind you, just I can't say when. Since juggling a career and this project, the career always wins. ($$ Money > *)
| Quote: | | set url "http://www.google.com/translate_t?langpair=${link}|${desc}" | Now the reason your getting illegal characters in url path, is the silly question mark and pipe (see them in bold above?). Not sure if I can \escape them and get a working url or not, but I'm pretty sure simply enclosing the url in quotes during the ::http::geturl solves it. Find the 'Proc Trans' section and within it do like I have below.
| Change from: wrote: | set url "http://www.google.com/translate_t?langpair=${link}|${desc}
set query [::http::formatQuery text $titem langpair "${link}\|${desc}" ]
set http [::http::geturl $url -query $query -timeout [expr 1000 * 10]] |
| Change to: wrote: | set url "http://www.google.com/translate_t?"
set query [::http::formatQuery text $titem langpair "${link}\|${desc}" ]
set http [::http::geturl "$url" -query $query -timeout [expr 1000 * 10]] | I see my rookie mistake now as clear as rain on a Tuesday morning. I was redundant in my querying. I have ::http::formatQuery build the query correctly, but I left the 'langpair=' hardcoded into the url as well. This creates redundancy and perhaps url errors...ugh. Hopefully this fix solves the problem for the time being.
| Quote: | <speechles> !tr en@it hello everyone at egghelp
<sp33chy> Google says: (en->it) ciao tutto a egghelp
<speechles> !tr it@en ciao tutto a egghelp
<sp33chy> Google says: (it->en) hello all to egghelp | Google translations leave alot to be desired, but the bot can only be as smart as the source site it parses, unfortunately. |
|
| Back to top |
|
 |
mabus Voice
Joined: 17 Jun 2005 Posts: 27
|
Posted: Wed Aug 15, 2007 9:42 am Post subject: |
|
|
| Yes, but still getting the error message |
|
| Back to top |
|
 |
danzigrules Voice
Joined: 02 Aug 2007 Posts: 17
|
Posted: Wed Aug 15, 2007 6:52 pm Post subject: |
|
|
fixed me all up.
Thanks much |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Aug 23, 2007 4:57 pm Post subject: |
|
|
Latest unofficial build: v1.9.6 August 23rd, 2oo7
This only fixes a few broken triggers, but includes all the quick-fix updates listed above. Still working on the promised encoding issues, will have it solved one day. Grab a copy Here or at any of the v1.96 links above. Have a fun  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Aug 23, 2007 6:55 pm Post subject: |
|
|
Unfortunately, encoding issues are inherent in tcl, until it supports unicode properly :<
Even using string map to put odd chars into the right codes for html, you're going to eventually come across the problem of tcl not handling the higher numbered unicode chars. |
|
| Back to top |
|
 |
|