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
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

Can't wait for the fix for this script. Good luck and thank you speechles. :D x3
t
tommytom
Voice
Posts: 16
Joined: Fri Sep 09, 2011 8:28 am

Post by tommytom »

First post/title says sept 9th 2011 but the actual script at the URL is dated august 7th 2012 and v2.1x

It's a work in progress, but it's probably better than your current one that was from 2011 (if you didn't bother redownloading what you thought was not updated).

Anyways, I just fired it up and math and conversions don't work, but it's displaying more than one result now, so it's an improvement.

I will see about fixing the math/conversion stuff if I have time in another fork topic, but I can't make any promises. Work too much now.

Thanks for finding the time to update some of it. At least it's not untouched since 2011 (the way the first post looks).

Edit:
Seems Google doesn't want to serve "calc" or "answers" to "Lynx" or "Mozilla" UA strings (the script uses both) or at least the versions used. Would have to shove a new working UA in there (just for !g) or change ALL of them to use one working one. Not familiar enough with the script to edit it like that. It would end up just being my own hackery getting what I use working and nothing else (change UA and fix anything that breaks). Still, no time for all that either. I guess it will have to remain partially broken then. Pity.

Oh well. I will wait for the official unofficial update from Speechles.

Edit2:
Well that worked. Uncommented the answers section (lines 1447-1464) and set the ua (line 6621) to "Mozilla/5.0 (Windows; U; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" and it magically worked (only tested !g 1+1 and !g 1 foot in meters). It would probably be better to just update the FireFox version in the UA though. Google seems to have dropped support for older browsers; I guess they can't be bothered to get the formatting correct for EVERY browser so they just don't display the "fancy" stuff to them.

Have no idea if updating the UA would break more stuff than it fixes. Attempt at your own risk or wait for Speechles to update the UA and affected code.

Edit3:
Tried an updated FireFox UA as well as Opera (my browser) and the script can't find the "answer" in it's current form and Fiddler2 just displays a redirect page. Looks like Google is moving to all JS/AJAX for modern browsers. Still, IE6 UA works (must still be pretty common). It might can be made to work with modern non-IE UAs, but you would have to sift through the JS stuff and likely have to update all the RegExs. Meh. This is disheartening.

Disabling "instant" might prevent the JS stuff, but it requires a persistent cookie.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

What are you on about? Dude, yawn, I already know all this. The problem is ENGLISH google.
<speechles> !g .es 4 dollars in peso
<sp33chy> 4 U.S. dollars = 52.6849571 Mexican pesos

<speechles> !g .com/intl/hi 14 mph in feet per second
<sp33chy> 14 mph = 20.5333333 feet per second

<speechles> !g .com/intl/en 2 + 2
<sp33chy> 25,270,000,000 results | Poker Strategy - Two Plus Two Poker & Gaming Strategy @ http://www.twoplustwo.com/ | Two Plus Two Poker Forum - Poker Strategy Forums @ http://forumserver.twoplustwo.com/ | 2+2 (car body style) - Wikipedia, the free encyclopedia @ http://en.wikipedia.org/wiki/2+2_(car_body_style) | 2 + 2 = 5 - Wikipedia, the free encyclopedia @
<sp33chy> http://en.wikipedia.org/wiki/2_+_2_=_5 | ThinkGeek :: 2+2=5 @ http://www.thinkgeek.com/product/60f5/

<speechles> !g .com 4 pounds in euro
<sp33chy> 159,000,000 results | convert euros into pounds @ http://www.euroresidentes.com/Property/ ... verter.htm | What is 4 pounds in Euro? - True Knowledge @ http://www.trueknowledge.com/q/what_is_4_pounds_in_euro | 4 GBP EUR - British Pound To Euro Currency Exchange @ http://gbp.cer24.com/eur/?q=4 | Convert Euros to Pound Sterling @
<sp33chy> http://www.advfn.com/currency-converter ... rling.html | How much is 4 Euros in pounds? - Evi @ http://www.evi.com/q/how_much_is_4_euros_in_pounds

<speechles> !g .com/intl/ru 4 pounds in euro
<sp33chy> 4 британских фунта = 5.10620982 евро
As you can see, I know exactly what is going on. Did you know all those ways to pull up searches existed in this script? Expect a new version soon that won't change the useragent and work correctly for calculation/conversions in english. This is very easy to me. Rushing things and over-explaining stuff isn't worth inflating this thread with anymore.

The CONSTANTLY EVOLVING script can be had by clicking the link below....
Incith:Google 2.1x
UPDATE: I fixed !images so it works again.. yay...

It shall never change versions. 2.1x is what you get now. You want to know whats new or changed. Um, run the script. It's too much of a hassle to update code and documentation anymore. Screw the docs. ;)

Btw, yawn.. It's boring talking about this script....
I am always on IRC at irc.efnet.net in #roms-isos If you have questions find me and ask them there. It doesn't make sense to post in this thread. You are talking things nobody cares about, unless its a new version update.
User avatar
norbert79
Voice
Posts: 4
Joined: Sun May 06, 2012 7:35 am
Location: Hungary
Contact:

Post by norbert79 »

Excellent work, thank you, just found this update. Such scripts should use some central repository, it's annoying looking through forums all the time for finding the latest for one eggdrop script.
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

google search not working for me
A
ActionA
Voice
Posts: 1
Joined: Wed Nov 21, 2012 4:40 pm

Post by ActionA »

yes, it's broken for everyone.

but i'll just leave this here....


03:45 < speechles> <ActionA> speechles: so it seems incith-google is borked?
03:45 < speechles> you missed the notice earlier ;P
03:46 < speechles> <speechles> http://ereader.kiczek.com/incith-google.tcl <<
03:46 < speechles> <speechles> you will notice !g and !f broke today, now they arent ;)
03:46 < speechles> <speechles> not released on egghelp forum yet, gonna wait for somebody to go, wtf.. its telling
me "derp." for google searches
x
xREVx
Voice
Posts: 15
Joined: Wed Jul 25, 2007 7:48 pm

Post by xREVx »

wtf.. its telling me "derp." for google searches

ok srsly now, it's giving me a HUGE url on google results :p
<Me> !g apple
<LeBot> Apple @
http://www.apple.com/&rct=j&sa=U&ei=5Li ... AA&q=apple | Apple Inc. - Wikipedia, the free encyclopedia @
http://en.wikipedia.org/wiki/Apple_Inc. ... AK&q=apple
s
senate
Voice
Posts: 1
Joined: Sun Nov 25, 2012 11:23 am

Post by senate »

The currency converter doesn't work in last version either..

Code: Select all

<@x> !g 10 eur in usd
<@zxy> 575,000,000 results | USD to EUR - The Money Converter @ http://themoneyconverter.com/USD/EUR.aspx&rct=j | ECB: Euro exchange rates USD @ http://www.ecb.int/stats/exchange/eurofxref/html/eurofxref-graph-usd.en.html&rct=j | Convert Euros to US Dollars @ http://www.advfn.com/currency-converter/euro-to-us-dollar.html&rct=j | XE.com - USD/EUR Chart @
<@zxy> http://www.xe.com/currencycharts/?from=USD&to=EUR&rct=j | Exchange Rate Average (US Dollar, Euro) - X-Rates @ http://www.x-rates.com/average/?from=USD&to=EUR&amount=1&year=2012&rct=j
T
TeknoJuce
Voice
Posts: 4
Joined: Mon Nov 26, 2012 2:08 am

Post by TeknoJuce »

<TeknoJuce> yeah theres a video of it on youtube as well automageek
<freeman-> meeeeep
<TeknoJuce> !yt aysculpture
<unLabBot> 615 results
<TeknoJuce> !youtube aysculpture
<unLabBot> 615 results
<TeknoJuce> :/
* TeknoJuce smacks the bot
<automageek> :)
<ekiMmI> haha
<ekiMmI> fail
<ekiMmI> rename it
<ekiMmI> failbot
<ekiMmI> =P
<TeknoJuce> :(

As well as I am trying to get dumping of logs working but not sure how this line is supposed to work for this script to prevent it from returning 1 or etc. so pub will release the chat to the log process as currently all I get is join/parts/status/etc just no public output was reading this thread here but not sure if this has been fixed ?

http://forum.egghelp.org/viewtopic.php? ... light=pisg
Actually... It's because of the test platform I use. Everything is tested on windrop 1.6.17 at first.

EGGDROP CHANGES - 1.6.18 wrote:
- Added support to MSGM, PUBM, NOTC, and WALL binds to support bound
procs returning 1 to prevent logging of the trigger message text.


So now, yeah it has a return 1 where it should be a return 0.
Code:
if {$::version < "1.6.18"} { return 1 } { return 0 }
Future versions of the script will include the code above to detect which value to return. The should fix the logging issue for all versions of eggdrop/windrop.
_________________
speechles' eggdrop tcl archive
User avatar
norbert79
Voice
Posts: 4
Joined: Sun May 06, 2012 7:35 am
Location: Hungary
Contact:

Post by norbert79 »

xREVx wrote:wtf.. its telling me "derp." for google searches

ok srsly now, it's giving me a HUGE url on google results :p
<Me> !g apple
<LeBot> Apple @
http://www.apple.com/&rct=j&sa=U&ei=5Li ... AA&q=apple | Apple Inc. - Wikipedia, the free encyclopedia @
http://en.wikipedia.org/wiki/Apple_Inc. ... AK&q=apple
And I still get "derp.". Anyone taking a closer look at the problem already?
T
TeknoJuce
Voice
Posts: 4
Joined: Mon Nov 26, 2012 2:08 am

Post by TeknoJuce »

even though its misleading said here, yes "derp" is fixed but it's just not said in so many words. You just have to grab the script again from the same url there is no fan-fair or version change numbers when this script is updated norbert79 kinda confusing I know but meh it's up to the author how he likes to roll with the punches.

Only way for you to know what changed would be to use one of those text editors that auto compare files with old ones, winmerge etc.

http://ereader.kiczek.com/incith-google.tcl

.rehash your bot after you have dumped it in your scripts folder.
User avatar
norbert79
Voice
Posts: 4
Joined: Sun May 06, 2012 7:35 am
Location: Hungary
Contact:

Post by norbert79 »

TeknoJuce wrote:even though its misleading said here, yes "derp" is fixed but it's just not said in so many words. You just have to grab the script again from the same url there is no fan-fair or version change numbers when this script is updated norbert79 kinda confusing I know but meh it's up to the author how he likes to roll with the punches.

Only way for you to know what changed would be to use one of those text editors that auto compare files with old ones, winmerge etc.

http://ereader.kiczek.com/incith-google.tcl

.rehash your bot after you have dumped it in your scripts folder.
Actually this is the same script I am using, and this reports 'derp' for me, unless there have been some changes posted since.
Let me check this again, and compare to mine.

Update: Yes, thanks, it works, would be worth adding notes to the changelog section as well, so we can see the recent changes too and are not forced using 'diff' :) Thank you!
r
rogerw
Voice
Posts: 3
Joined: Fri Nov 30, 2012 12:35 am

Links end up with &rct=j

Post by rogerw »

As is apparent each of the links end with

Code: Select all

$rct-j
on a Google search. I checked the thread for a problem similar to this, but didn't see it.

I'm using incith-google ver 2.1x on a Eggdrop v1.6.21

Only the Google search has this issue.

I didn't notice this problem with the examples posted in the thread.

So what could be wrong?
Roger
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

norbert79 wrote:Update: Yes, thanks, it works, would be worth adding notes to the changelog section as well, so we can see the recent changes too and are not forced using 'diff' :) Thank you!
Touche!
Thanks for the feedback. I agree, lately this script is becoming less than spectacular. I expect to have some time in the coming week to address alot of the issues. All those broken triggers !youtube, !ebay, !review, etc need some love as do several others. I plan on updating the script eventually and you will see a new version soon ( and yes, the version number and date will change ). But for the moment, all thats been occuring with the script are parser updates. These are quite minor hence the script is stuck at version 2.1x atm.

http://ereader.kiczek.com/incith-google.tcl - updated today

This will correct the cruft left at the end of the urls specifically the &rct=j mentioned above. Be patient, a new super duper version is coming eventually. Don't give up hope... May the force be with you... always. ( disney ripped off lucas on that deal btw, at least imo ) ;)
d
darkunderdog
Voice
Posts: 2
Joined: Sat Dec 01, 2012 4:31 pm

Post by darkunderdog »

any idea why this isn't working in channel and only private message with using the default script with no edits?
Post Reply