That's one of those problems I'm having lately. Haven given such freedom in languages, I've now thrown a giant hurdle in front of myself. While this one isn't so giant, it is never the less a hurdle that I can't really appreciate yet until I factor some things in; a) it's using the same way of extending codes for things using %'s (%c5%ad, etc) as Wikipedia does. b) I'm going to assume this is unicode, which I haven't tried to implement yet..Because of it's obvious flaws (rosc2112 has pointed out above in this thread)... What this means, is the same thing holding up Wikipedia from evolving as I'd like, also keeps me from evolving everything else as well (youtube included ). It isn't that I don't have the time to try fixing it, it's just that in fixing it for language C, I don't want to break it for languages D-G.. ya know? That's quite honestly the most difficult part of this script; the complexity, care, consideration undertaken when working with every language. It's fun sure... but things like this, I need to investigate before I just toss some random code to solve it short time.testebr wrote:To do search with words accentuated in the youtube doesn't work. Can you fix this problem?
Thanks
This is possible indeed. But will require multiple modifications for each proc to add some way to detect double parameters for _results, and modifying all the bind procs that branch to each proc function. Which is too time consuming for me until the weekend gets here.cruxing wrote:This is brilliant.
If you're still accepting suggestions, I do have a couple.
Is it possible to have two sets of variables for the size of responses? One for public queries, and one for msg/notice queries? I'm hoping to just have !google be a 'feeling lucky' response in main chat, but the more full scale response if privately messaged. I suppose, to go in hand with this, would be the ability to change some of the other variables based on public or private trigger as well (such as page titles, etc).
This is as simple as adding a new variable (ie, only_oneresult_answers) to the user config. 'answers' are those times when it would give you time, zipcode, areacode, calculator, weather, etc mixed in with your results. This is an easy one to do.cruxing wrote:In a similar vein, is it possible to get the short hand weather only? No links, just the generic whatever that google spits out.
This can already be done, see below.cruxing wrote:And for a noobish question to follow that up -- all of the responses seem to be in Celsius. I am GUESSING, and this is just a guess, that it is due to my server being located in canada and google responding in kind based on that. Any workaround/suggestion for that? While I do know my Celsius, Fahrenheit would be a little quicker to mentally parse...
Thanks so much for all the work you've done on this -- it really is a great catch-all for lazy irc dwellers.
As you can see, the .country.switch you specify matters when it comes to formatiing. The 'default' you give in the config is only for times when .country.switching isn't used, which causes default. When the Canadian server was used (above) and Calgary is in Canada, it even omitted that too from the 'answer'. Above is how I'm guessing you want it, which just the single result 'answer'irc wrote:<speechles> !g .com.au weather Calgary
<sp33chy> Weather for Calgary, AB, Canada: 22°C, Cloudy, Wind: SE at 6 km/h, Humidity: 29%
<speechles> !g .com weather Calgary
<sp33chy> Weather for Calgary, AB, Canada: 71°F, Cloudy, Wind: SE at 4 mph, Humidity: 29%
<speechles> !g .ca weather Calgary
<sp33chy> Weather for Calgary, AB: 22°C, Cloudy, Wind: SE at 6 km/h, Humidity: 29%
... If I knew how to solve it, it would've been solved a long time ago (read back in this thread)...djevrek wrote:Still nothing for UTF-8 problems for wikipedia ?
!local also had a problem with grabbing results properly, seems google added a pair of double-quotes surrounding some html. It's accounted for now, working, and available here or at any v1.96 link above.. enjoysample from irc wrote:<speechles> !ign crash of the titans
<sp33chy> 7 results | Crash of the Titans (PlayStation 2 Game by Sierra) @ http://ps2.ign.com/objects/899/899065.html | Crash of the Titans (Wii Game by Sierra) @ http://wii.ign.com/objects/899/899066.html | Crash of the Titans (PlayStation Portable Game by Sierra) @ http://psp.ign.com/objects/899/899189.html
<speechles> !ign mario
<sp33chy> 200 results | Mario (PC Game by Chaos Software) @ http://pc.ign.com/objects/003/003378.html | Super Mario Bros.: Mario's Movie Madness! (DVD) @ http://dvd.ign.com/objects/895/895402.html | Super Mario Bros. (DVD by Walt Disney Home Entertainment) @ http://dvd.ign.com/objects/794/794652.html
Any ideas? Thanks!!9:58am (optix) [06:59] Tcl error [incith::google::public_message]: can't read "w5": no such variable
MacBrando wrote:Anyone else's weather not working? Everyone has been trying for the past two weeks or so doing the "!g weather 12345" trigger and nothing comes back at all. I am getting this error via DCC:
Any ideas? Thanks!!9:58am (optix) [06:59] Tcl error [incith::google::public_message]: can't read "w5": no such variable
As usual, grab your copy HERE or at any v1.96 link above. Have fun.sample from irc wrote:<speechles> !g weather 12345
<sp33chy> 588,000 Results | Weather for New York 12345: 57°F, Cloudy, Wind: S at 6 mph, Humidity: 38% | whole new kinds of weather -- K.12345 @ http://www.artofthemix.org/FindAMix/get ... ixid=39024 | Yahoo is now our competitor? @ http://www.webmasterworld.com/forum35/1751.htm | Shortcuts: Quickie weather URL - Lifeh @ http://lifehacker.com/software/shortcut ... 213098.php
If you can give better examples this can be accommodated for. I'm not quite 100% sure what you mean ...O_o;;? If you mean your [ CAPTIONS ] displayed before each action, isn't is overly obvious what those links are by where they head without the need to spam in ALLCAPS what it is.. pretty sure this is true. Only google links will lead to a differing link, Youtube will always be a youtube link, always. Also, the script already has support for Colors, Bold, and Underline in main procs. Torrent and a few others use underline + bold in different ways to mean different things. I can't allow the bot to destroy these meanings, so some procs won't let you touch their output. That is intentional.nsrafk wrote:Hi.
First of all thanks for a nice script!
I have a thing im wondering about.. Is it possible to customize the output of the !triggers in more ways?
Its because i want the output to be as all my other scripts.. Like this;
[ IMDB ] -> Title: bla
[ XE.COM ] -> CURRENCY bla
[ GOOGLE ] -> description @ www.link.com
[ YOUTUBE ] -> description @ www.link.com
etc etc, i think u get the idea. Would be nice if you could add this feature. Colors, bold & underline support also.
I hope you'll consider adding this