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.
<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.
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.
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
<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 ?
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
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.
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.
.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!
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.
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 )