| View previous topic :: View next topic |
| Author |
Message |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Thu Aug 11, 2005 5:15 am Post subject: |
|
|
Ok, now thats out of the way, time for some begging/suggestions/thoughts/feedback
General suggestions, feel free to ignore them all as if you listen to us damn (ab)users too much, it ends up taking over your life! (And then we whinge & complain when all the free support vanishes and stuff... *cough*)
1 - Include ability to specify language per search instead of only having the default eg: "!g -fr blahblah"
2 - Also part of 1 - allow users to create a default setting for themselves ... perhaps register it in their bot handles, eg: "--XTRA incithgoogle.lang" or something.
3 - It'd be nice to be able to hard code the "allowed" or even "ignored" channels into the tcl/settings file too. While I think the +google setting is fantastic for dynamic channels, it creates a problem when you use a "source channels/settings" file to define the channels layouts in that eggdrop will crash if you define the channels prior to running this script.
(It complains about +google being an invalid channel setting.)
4 - Similar to 1 & 2 above, allow to use the "local" google for searching. Eg: www.google.com.au for me. Its a bit faster and stuff. Would be a lot better for the non-english language users too.
5 - Along the same lines/purposes of the language & local google ideas - allow domain/site narrowing. eg: "!g -.au blahblah". This often returns different results to just using the narrowing the "country" search to say "au". Would use the "site:.blah" modifier as per the below cheatsheets.
6 - More "!g define:" style extras from here: http://www.google.com/help/operators.html and http://www.google.com/help/cheatsheet.html
Stocks: is one of those I can certainly see myself using
PS: If you dont mind these ideas, I'm happy to do some code ideas and send you various bits to add in if you like. Royalty free too !!
PPS: Damn nice addon, it's given me a purpose in life  |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Aug 11, 2005 5:57 am Post subject: |
|
|
| madwoota wrote: | | General suggestions, feel free to ignore them all as if you listen to us damn (ab)users too much, it ends up taking over your life! (And then we whinge & complain when all the free support vanishes and stuff... *cough*) | Nobody ever emails me until it's broken.. =/ Sometimes I wonder if people are even using it, or if it's just working properly for'm.
| madwoota wrote: | | 1 - Include ability to specify language per search instead of only having the default eg: "!g -fr blahblah" | Good idea. I need to clean up my google script somewhat, it's gotten a bit messy. I had thought about flags/modifiers/options to pass before, not with any serious thought mind you, but what if you want to literally "-fr" in the search? "!g -fr -fr" ? So I'll have to think about a sane way to do it, perhaps using long flags (--fr vs. -fr).
| madwoota wrote: | | 2 - Also part of 1 - allow users to create a default setting for themselves ... perhaps register it in their bot handles, eg: "--XTRA incithgoogle.lang" or something. | Yeah. I probably never would have thought about this as everyone speaks English in my channel, despite a few are natively french. I'll add it to the todo as well.
| madwoota wrote: | 3 - It'd be nice to be able to hard code the "allowed" or even "ignored" channels into the tcl/settings file too. While I think the +google setting is fantastic for dynamic channels, it creates a problem when you use a "source channels/settings" file to define the channels layouts in that eggdrop will crash if you define the channels prior to running this script.
(It complains about +google being an invalid channel setting.) | Ah, that's a shame I like the +google-ness. No rehashing to update the channels.. but if it's causing problems, I'll perhaps change my scripts into a 'allow_channels' variable.
| madwoota wrote: | | 4 - Similar to 1 & 2 above, allow to use the "local" google for searching. Eg: www.google.com.au for me. Its a bit faster and stuff. Would be a lot better for the non-english language users too. | Faster.. meh. More accurate results? Probably. If I can tie it into the '-fr' options above easily, perhaps. Otherwise this probably won't see light.
| madwoota wrote: | | 5 - Along the same lines/purposes of the language & local google ideas - allow domain/site narrowing. eg: "!g -.au blahblah". This often returns different results to just using the narrowing the "country" search to say "au". Would use the "site:.blah" modifier as per the below cheatsheets. | I'll have to look into this a bit.. I understand what you mean, but to me, and after reading the operators and such, "-.au" would (should?) merely just not search for ".au", but I've not even tested this theory. Does it remove .au websites too? Or just search results containing .au in them?
Hmph. I've of course been all around the google help areas, but never knew about these two pages. This looks fun. ^^ Yeah, I had plans to add stocks. Obviously useful. I had my incith:exchange script, but Google does that too. Among others, I wanted to add the movie: reviews as I mentioned, and UPC codes! Fun stuff.
| madwoota wrote: | | PS: If you dont mind these ideas, I'm happy to do some code ideas and send you various bits to add in if you like. Royalty free too !! | Royalty free! Well, this could be good for me as I'm potentially going to be quite busy in the next few months.. e-mail me sometime if you like.
| madwoota wrote: | PPS: Damn nice addon, it's given me a purpose in life  | Hehe, thanks. I just wrote it for the lack of (working?) google scripts around, and because.. well, there's a lot more to google than google.com. I also wrote a script for filemirrors.com, which one of those google scripts used to parse .. I'll be releasing that soon, for !file functionality.
Regards~ _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 11, 2005 2:02 pm Post subject: |
|
|
a little bit offtopic, but loading chan settings from a script is bad practice - the chanfile is there for a reason, and the reason is that, besides providing dynamic settings modification, it actually gets loaded after the config (and therefore after all scripts), thus allowing all [setudef]s to take place before reading in their actual values for a particular channel
so, +google chan setting should stay; and in general, no script should require configuring its channel functionality not via .chanset |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Aug 11, 2005 2:07 pm Post subject: |
|
|
Alright, I'll keep the setudef functionality. It seemed cleaner this way as it is anyway. =) _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Fri Aug 12, 2005 7:28 am Post subject: |
|
|
I wasnt saying to remove that functionality, only *add* the *option* to put it in the tcl/conf file.
It could remain #'d out to ignore it & default to a +google.
And saying you should or shouldnt do something is irrelevant since its dependant entirely on your own personal preference.
I use a setup that works for me, but its also very security concious, and hard codes a lot of variables within the files (eg: static channel definitions).
It used to be more of a problem back when people could more easily spoof hostmasks and join channels and such as a +n.
Anyway, incith, I've added two things already.
1 - Recognition for a "special match" eg: something like this, you will get the first results as a "special match" or whatever google calls it.
2 - groups.google.com search added via !gg !group and !groups
If you want either of these, let me know and I'll send you either the whole thing or a .diff. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Fri Aug 12, 2005 7:59 am Post subject: |
|
|
Oh, yeah. Google groups was another TODO thing that a friend wanted. =) (but I forgot about it..)
I just submitted incith:xrl (xrl.us url shortening service) and incith:filemirrors (filemirrors.com file searching), and I had to update horoscope for a couple folks that emailed me about it.. so at the moment I'm a bit Tcl'd out =)
I think I may try and clean up google before the next release, that while{} loop has grown monstrously scary..
As far as inline settable channels.. I suppose we could have a [check_channel] proc that would check for the setudef flag and the settable channels variable. | Code: | | if {[check_channel $chan] != 1} { return } |
If I clean up google.. I want to make it easy to add new '[link:define:]' etc searches, and blah blah.. regsubbing through it is just starting to feel really nasty.
Regards~ _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Fri Aug 12, 2005 10:38 am Post subject: |
|
|
| incith wrote: | | If I clean up google.. I want to make it easy to add new '[link:define:]' etc searches, and blah blah.. regsubbing through it is just starting to feel really nasty. |
Mate, I just spent a couple hours delving through your stuff ... its not that bad compared to some of the rubbish I've created
Also, .diff file emailed with above changes (was easier than commenting everything and sending the whole shebang).
Might have a go at a few more additions too. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Aug 14, 2005 12:32 am Post subject: |
|
|
I've gone over madwootas changes, they'll 99% most likely be in the next release of incith:google, which will bring google groups support. =)
And the population thing too. *smirk*
Thanks, madwoota. =) _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Tue Aug 16, 2005 10:01 am Post subject: |
|
|
incith,
news.google.com searching (!gn) is added.
I've emailed you another unified diff, but I couldnt be bothered pulling the previous changes out and just modding in the current bits for news.
So it includes all changes made so far against a default 1.4
I gather this is why cvs and such is handy
Next challenge - movie:, language, locality & stocks:.
... Although, since google stocks: actually uses yahoo, is that even appropriate for a google script ?  |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Sep 03, 2005 10:02 am Post subject: |
|
|
Version 1.5 is up, support for print.google.com, news.google, groups, and a bunch more..
There's a bug in previous versions which allows a lot of potential channel spam to be generated, so you may want to update. =) _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
kayuto Voice
Joined: 03 Sep 2005 Posts: 2
|
Posted: Sat Sep 03, 2005 5:57 pm Post subject: |
|
|
hi incith
your script works great with "!" as conmmand char.
but if want to use another char there, your script doesn't work for me anymore ;|
for example, i normally use "§" in my other scripts. but i get no response if i use this char in yours ;( |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Sep 08, 2005 7:45 pm Post subject: |
|
|
| kayuto wrote: | hi incith
your script works great with "!" as conmmand char.
but if want to use another char there, your script doesn't work for me anymore ;|
for example, i normally use "§" in my other scripts. but i get no response if i use this char in yours ;( |
I'll have to look into it.. thanks for mentioning it. =) _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Sep 11, 2005 11:51 am Post subject: |
|
|
Ok, well I've coded a solution for this, I'll try and get it into the release after the next one.. it is fixed in the next incith:weather script update. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
kayuto Voice
Joined: 03 Sep 2005 Posts: 2
|
Posted: Sun Sep 11, 2005 2:58 pm Post subject: |
|
|
| Thanks |
|
| Back to top |
|
 |
cooluser55 Voice
Joined: 12 Sep 2005 Posts: 2
|
Posted: Mon Sep 12, 2005 1:05 pm Post subject: |
|
|
| I can't for the life of me find the require package http 2.3 .. after reading these posts here, I saw http-2.5.tcl and don't see that in my scripts file... can someone show me where I can get it? thanks. |
|
| Back to top |
|
 |
|
|
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
|
|