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.

UNOFFICIAL incith-google 2.1x (Nov30,2o12)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Zircon wrote:Hi there

Thanks for this very nice script. I added fr:iso8859-1 for french encoding. When i type !wiki montréal, it gives the desired result but with this link at the end : http://fr.wikipedia.org/wiki/Montr%C3%A9al

Are we supponsed to have these characters in the link ?
Yes, this is perfectly normal. This happens with non-standard characters. You can verify this is correct by visiting the link in a real browser. If it works, and goes there, the script is working correctly.
Zircon wrote:By the way, !wiki montreal gives http://fr.wikipedia.org/wiki/Montreal
Wikipedia allows for several redirected links arriving at the same destination. The correct way to arrive is always given as the page title, using this shouldn't produce a [1 redirect(s)] at the end. Using montreal you should see the script verify it was given [1 redirect(s)] and told to visit Montréal instead. In cases where this doesn't happen, you can tell when wikipedians get lazy, aren't correcting most relevant links, and aren't assigning redirects correctlly, but instead directly linking them to relevant pages which causes confusion.
h
hicks
Voice
Posts: 9
Joined: Wed Dec 19, 2007 3:22 pm

Post by hicks »

Many many thanks for the extended upkeep and work on this to all concerned.

I noticed someone mentioned seeing spaces in some !image searches - I'm seeing this too.

e.g.

Code: Select all

[21:55] <mynick> !i computar
[21:55] <botname> 36,600 Results | http://www.filmwad.com/fw_images/bb/computar.jpg | http://reliablecctv.com/images/COMPUTAR ZC-L1210EHA 1-4 Inch B-W hi res integrated 2.8-10mm AI lens.jpg | http://reliablecctv.com/images/COMPUTAR ZC-D6026EA Indoor Fixed Dome 1-3 Inch B&W  dome 2.6-6mm AI.jpg | http://www.digitalssinc.com/images/dss/TG0812FCS.jpg
I'm sure these used to be %20'd in earlier versions of this script. If only I had any talent and could look through this code to fix it ;)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

hicks wrote:Many many thanks for the extended upkeep and work on this to all concerned.

I noticed someone mentioned seeing spaces in some !image searches - I'm seeing this too.

e.g.

Code: Select all

[21:55] <mynick> !i computar
[21:55] <botname> 36,600 Results | http://www.filmwad.com/fw_images/bb/computar.jpg | http://reliablecctv.com/images/COMPUTAR ZC-L1210EHA 1-4 Inch B-W hi res integrated 2.8-10mm AI lens.jpg | http://reliablecctv.com/images/COMPUTAR ZC-D6026EA Indoor Fixed Dome 1-3 Inch B&W  dome 2.6-6mm AI.jpg | http://www.digitalssinc.com/images/dss/TG0812FCS.jpg
I'm sure these used to be %20'd in earlier versions of this script. If only I had any talent and could look through this code to fix it ;)
That was an erroneous [urldecode $link] placed where it shouldn't have been. On checking them all over, it appears I only made this mistake in images which has now been corrected. Reget the script and all should work dandy once again. ;)
m
mojado
Voice
Posts: 27
Joined: Wed Dec 19, 2007 10:29 am

Post by mojado »

Set this script with:
.chanset #channel +google

But when I try ....

Code: Select all

!google .ar dog
I receive this error in the partyline.

Code: Select all

Tcl error [incyth::google::public_message]: can't read "state(status)": no suck variable
Where is my error?? :?:
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

mojado wrote:Set this script with:
.chanset #channel +google

But when I try ....

Code: Select all

!google .ar dog
I receive this error in the partyline.
I recieve a different error.
<speechles> !google .ar dog
<sp33chy> Socket Error accessing 'http://www.google.ar/search?q=dog&safe= ... all&num=10' .. Does it exist?
Make sure you have the input/output encoding variables set to 1 for both. Also make sure I've correctly set the encoding for "ar:encoding" in the encode_strings section. As well, if it instead was .com.ar you meant, in the encode_strings section should be added "com.ar:encoding" as well.
<speechles> !g .com.ar dog
<sp33chy> 414.000.000 Resultados | Xunta de Galicia - Diario Oficial de Ga @ http://www.xunta.es/diario-oficial | diario oficial de galicia @ http://www.xunta.es/dog/Dog.nsf | Dog - Wikipedia, the free encyclopedia @ http://en.wikipedia.org/wiki/Dog | Dog Supplies, Dog Beds, Toys & Treat @ http://www.dog.com/
It is up to the individual to tailor the encode_strings section to fit their needs. You may or may not need to do this if everything appears to display correctly. If things seem odd, you need to adjust your encode_strings section.

The problem that should be happening for some is the url isn't properly encoded into %value's and some higher character values cannot be expressed for some sites without doing this. This will be something to fix when and if people complain of it. It's a known issue for sure.
mojado wrote:

Code: Select all

Tcl error [incyth::google::public_message]: can't read "state(status)": no suck variable
Where is my error?? :?:
note: when relaying proper error messages, spelling is a big plus. Always try to copy/paste rather than type. INCYTH.. no suck variable.. see the problem?
This error isn't actually an error caused by this script. This is something caused by it's dependency on http.tcl, a tcl provided package. Here is what I am going to suggest to anyone using this script. Instead use my slightly modified http.tcl v2.4.2 which I've mentioned solves the problem with http.tcl generating state(*) errors.

Edit: As a side note to others I've resolved a small issue with the script confusing input/output encode flags..
h
hicks
Voice
Posts: 9
Joined: Wed Dec 19, 2007 3:22 pm

Post by hicks »

Again, many thanks for the quick fix speechles :D
m
mojado
Voice
Posts: 27
Joined: Wed Dec 19, 2007 10:29 am

Post by mojado »

Howto add more sites torrent to search??
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

mojado wrote:Howto add more sites torrent to search??
Um.. discussing the torrent part of this script should not be done using this public forum. Let's pretend it exists, but it's something frowned upon. The main reason we can't talk about it is warez. While it's true torrents host legal files, it has a darker side that is more prevalent making it easy to fall into open discussions about warez, which for here, on this forum is a great big no-no.

So in short, what you will need to do is learn tcl/regexp/regsub for yourself if you wish this done. What I've given you in the script is enough to learn from. I've commented many sections in full detail. Because while it is entirely possible for me to do, its something I don't desire to do, Mininova is enough for me....:lol:

Side Note: Found a small problem with extended descriptions while using either of youtube's double lookups (caused by their recent website changes), this has now been corrected.
t
tripson
Voice
Posts: 1
Joined: Mon Dec 24, 2007 7:55 am

Post by tripson »

Hi.

I think there is a bug in this script... when you want to calculate a division (!g 100/5), first of all it shows how many results is on google, then it shows calculated result, and after that it shows couple of google results... with other operations, theres no problem, just with division...


thanks
tripson
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

tripson wrote:Hi.

I think there is a bug in this script... when you want to calculate a division (!g 100/5), first of all it shows how many results is on google, then it shows calculated result, and after that it shows couple of google results... with other operations, theres no problem, just with division...


thanks
tripson
None of those you mention are bugs of any sort. This happens because there are more results found than just the 'google calculation answer'. When you !g 100/5 (click here for web based google results), you get exactly what you see on the web given on irc. This is NOT a bug, this is entirely intentional, there is nothing to fix.
<speechles> !g 100/5
<sp33chy> 1,740,000 Results | 100 / 5 = 20 | 100'5 Das Hitradio, Eupen und Aachen @ http://www.dashitradio.de/ | AsiaSat 2 at 100.5°E - LyngSat @ http://www.lyngsat.com/asia2.html | [PDF] FM 100-5 Operations @ http://www.fs.fed.us/fire/doctrine/gene ... ations.pdf
<speechles> !g 100/5 + 0
<sp33chy> (100 / 5) + 0 = 20
Notice when the only result google gives is the 'google calculation answer', only it is given by the script without the total results. This is also NOT a bug, this is entirely intentional, there is nothing to fix.

Remember as well, this is how I've intended it to work for me in channels where I presently idle. If you want ONLY the google calculation answer given whenever they are present, you will need to hack this in yourself as I have no plans to ever do so (this is a google script after all :D). I enjoy having the script work exactly (with all the good, the bad and the ugly intact) as google does. I've gone out of my way to tailor sections to fit other users whims, but this part I am dead set against changing.

The reason I'm against it is quite simple. 'Google calculation answers' are interpreted in the same way 'did you mean' are. The script pretty much handles them in the same area allowing them to be inserted as results, rather than given as the only reply (this isn't merely a calculation script, see :P). In this way it becomes closer to web based google (the goal), which is the intention (soul) of this script.
S
Skiv
Voice
Posts: 5
Joined: Thu Dec 27, 2007 11:46 am

Post by Skiv »

Hi, I'm using UNOFFICIAL-incith-google-v1.96.tcl, and I have flood protection on in it. 2 queries in 30 seconds, the 3th being ignored.
Now when the ignore fuction starts up, the ppl get ignored for 1 minute, and I think its a little bit too long. Anyway to change it to for example 30 seconds? Please help :)

Also, is it possible to set a command to display the time left till the ignore fades off? In Incith-google
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Skiv wrote:Hi, I'm using UNOFFICIAL-incith-google-v1.96.tcl,
Why aren't you using v1.97, the current and presently supported version?
Skiv wrote: and I have flood protection on in it. 2 queries in 30 seconds, the 3th being ignored.
Now when the ignore fuction starts up, the ppl get ignored for 1 minute, and I think its a little bit too long. Anyway to change it to for example 30 seconds? Please help :)

Also, is it possible to set a command to display the time left till the ignore fades off? In Incith-google
Question #1---Anyway to change it to for example 30 seconds?

The problem here is that eggdrop is actually doing the ignoring, all the script is doing is giving it a newignore. Eggdrop can only handle ignores in minutes, so to do seconds you see would require writing an ignore feature for this script. One that would never nor could ever be as fast/friendly/bugfree/etc as the internal eggdrop ignore.


Questions #2--Also, is it possible to set a command to display the time left till the ignore fades off?

To list how long the offender is ignored allows them to continue to offend. Think as well, since they are ignored already how will the bot see them? Letting another user be capable of displaying their ignore time remaining for them leads to serious problems. Ignored users will start bugging other users to spam commands for them to see their remaining ignore time.

For both these types of issues it seems foolish for me to even begin to consider this a problem with the script... :lol:
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Happy new year everyone... :P

Applied a few fixes to some longstanding issues in wikipedia/wikimedia portions, which now eliminates the need (hopefully *fingers crossed*) to use stripcodes tcl command. This should make it more compatible with tcl versions. It has made it possible as well to allow in-description bolding which before wasn't possible. Below are a few examples of how this looks with wikimedia. A : colon starting a line signifies its starting at a #subtag. I've also corrected the way in which tags are disregarded. The script was only to discard [edit] type tags or [1] [2] type reference tags, but turns out was in fact discarding anything found between brackets. This is fully addressed now and done correctly.
<speechles> !wm .en.wikiquote.org futurama#godfellas
<sp33chy> Futurama | : Godfellas Bender: Oh cruel fate, to be thusly boned. Ask not for whom the bone bones, it bones for thee. Bender: You know, I was God once. God: Yes, I saw. You were doing well until everyone died. God: Bender, being God isn't easy. If you do too much, people get dependent on you, and if you do nothing, they lose hope. You have to use a light touch. Like a safecracker, or a pickpocket. Bender:
<sp33chy> Or a guy who burns down a bar for the insurance money! God: Yes, if you make it look like an electrical thing. When you do things right, people won't be sure you've done anything at all. @ http://en.wikiquote.org/wiki/Futurama#Godfellas [2 Redirect(s)]

<speechles> !wm .wiki.hellowafflezone.com xbox softmodding
<sp33chy> Xbox softmodding | ALWAYS HAVE A BACKUP OF YOUR EEPROM on your computer and/or a burned disk in a safe place if your Xbox is modded! MAKE NO EXCEPTIONS!! The EEPROM can be essential to recovering from software or hard drive failure. @ http://wiki.hellowafflezone.com/Xbox_softmodding
Here is the current script, v1.97 or find it at any v1.97 link found above.

Note: The config variable bold_descriptions must be set to 1 for the bold effect to work.
p
pobunjeni
Voice
Posts: 5
Joined: Sun Aug 12, 2007 6:43 am
Contact:

Post by pobunjeni »

Can you add this function to your script what time is it

Wikipedia on serbian have (Cyrillic/Latinic) http://sr.wikipedia.org/sr-el is for latinic and http://sr.wikipedia.org/sr-ec is for cyrillic, can you make script display results only for sr-el?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

pobunjeni wrote:Can you add this function to your script what time is it
It already does this...see quote below
<speechles> !g what time is it in paris
<sp33chy> 29,200,000 Results | 7:03 PM Thursday (CET) - Time in Paris, France | Current local time in Paris - France @ http://www.timeanddate.com/worldclock/city.html?n=195 | The World Clock - Time Zone Difference @ http://www.timeanddate.com/worldclock/d ... tml?p1=195 | Paris, France current local time fro @ http://www.worldtimeserver.com/current_ ... city=Paris
Post Reply