egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNOFFICIAL incith-google 2.1x (Nov30,2o12)
Goto page Previous  1, 2, 3, 4, 5 ... 56, 57, 58  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Aug 07, 2007 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Wed Aug 08, 2007 10:44 am    Post subject: Reply with quote

MY FAULT - I AM SOOOOO SORRRRY ! I had loaded an old version Sad((

Sorry sorry.. but thanx for helping !

The Script works perfect for me - 10 of 10 Points !

greets
Back to top
View user's profile Send private message
transacid
Voice


Joined: 08 Aug 2007
Posts: 12
Location: Hamburg / Germany

PostPosted: Wed Aug 08, 2007 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Aug 08, 2007 9:54 pm    Post subject: Reply with quote

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! Smile

Download here or at any v1.9.6 link above, all are updated the same.
Back to top
View user's profile Send private message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Sun Aug 12, 2007 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Aug 12, 2007 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Mon Aug 13, 2007 10:15 am    Post subject: Reply with quote

ICK, I hate making Newbie mistakes. My apologies and thank you Smile
Back to top
View user's profile Send private message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Tue Aug 14, 2007 1:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
danzigrules
Voice


Joined: 02 Aug 2007
Posts: 17

PostPosted: Tue Aug 14, 2007 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Aug 14, 2007 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Aug 14, 2007 8:59 pm    Post subject: Reply with quote

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!Embarassed
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. Smile ($$ 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
View user's profile Send private message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Wed Aug 15, 2007 9:42 am    Post subject: Reply with quote

Yes, but still getting the error message
Back to top
View user's profile Send private message
danzigrules
Voice


Joined: 02 Aug 2007
Posts: 17

PostPosted: Wed Aug 15, 2007 6:52 pm    Post subject: Reply with quote

fixed me all up.


Thanks much
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Aug 23, 2007 4:57 pm    Post subject: Reply with quote

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 Razz
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Aug 23, 2007 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4, 5 ... 56, 57, 58  Next
Page 4 of 58

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber