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 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: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 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: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.
This can already be done, see below.
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%
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'