Yes. In addition I have a query. In a recent earlier version, maybe up until d, I was able to search google news and the headline of returned articles would be displayed. Now it's the url preceded by the source and date which is much less usefully informative. I thought this might be due to 'short answers' so i disabled that but it makes no difference. Is there a way to produce the previous default news returns? Tia. Appreciate the script btw.inFECT wrote:anyone else have the problem that !video isn't working anymore with 1.99h?
Code: Select all
# Custom Trigger Phrasing
# This is used to customize triggers and for
# constructing phrases to pass, format is:
# "custom-trigger:trigger-to-associate-with:phrase"
# within the phrase %search% = search terms (passed phrase)
# DO NOT USE THE COMMAND CHAR IN THESE IT IS ASSUMED.
variable my_customs {
"ch:g:%search% +site:computerhope.com"
"eh:g:%search% +site:egghelp.org"
"mi:g:%search% +site:mircscripts.org"
"rw:wm:.wiki.roms-isos.com %search%"
"gw:wm:.wiki.gbatemp.net/wiki %search%"
"ed:wm:.encyclopediadramatica.com %search%"
"un:wm:.uncyclopedia.wikia.com %search%"
"wq:wm:.en.wikiquote.org/wiki %search%"
"lw:wm:.lyricwiki.org %search%"
"wk:wm:.en.wiktionary.org %search%"
"bible:wm:.bible.tmtm.com/wiki %search%"
"znc:wm:.en.znc.in/wiki %search%"
"gbr:g:.com.br %search%"
"got:g:%search% +ext:torrent"
"rs:g:%search% +site:rapidshare.com"
"rsmp3:rs:%search% +ext:mp3"
}
Code: Select all
"eh:g:%search% +site:egghelp.org"
Code: Select all
"rs:g:%search% +site:rapidshare.com"
"rsmp3:rs:%search% +ext:mp3"
Code: Select all
"gbr:g:.com.br %search%"
"guk:g:.co.uk %search%"
"gfr:g:.fr %search%"
etc..etc
Code: Select all
00:39:26 <@Cleaner> !google computer
..
Code: Select all
[19:14] <hipeople> !w kelowna
[19:14] <+blogger> Kelowna | Kelowna (May 16, 2006 census population 106,707, metropolitan population of 165,596) is a city on Okanagan Lake in the Okanagan Valley of British Columbia, Canada. Its name derives from a native term for "grizzly bear". Kelowna ranks as the 22nd largest metropolitan area in Canada. Nearby communities include West Kelowna to the west across Okanagan Lake, Lake Country and then Vernon to the
[19:14] <+blogger> north, as well as Peachland to the southwest and, further to the south, Summerland and Penticton. @ http://en.wikipedia.org/wiki/Kelowna
Did you even bother to read the config section of the script, particulary the part below?cleaner wrote:Hello!
I have problem with this script!
When i type in public chat command, bot doeasn't answer me!
What I most do?? I have tryed changing variable private_messages 1 to 0, but this doesn't help.
This isn't first time that bot ignore public command, but how to fix it with this script?Code: Select all
00:39:26 <@Cleaner> !google computer ..
(On private is working.. I think, but need public)
Please answer me!
Code: Select all
# BASIC USAGE GUIDE:........................................... #
# #
# .chanset #channel +google #
Wow, two people in a row who can't be bothered to read the config... Amazing!duckdown wrote:Hi, why is the !w command making the bot output a bunch of random crap?
I have a weather script running, which uses the !w trigger, and this bot is clashing with it:
let me know, thanksCode: Select all
[19:14] <hipeople> !w kelowna [19:14] <+blogger> Kelowna | Kelowna (May 16, 2006 census population 106,707, metropolitan population of 165,596) is a city on Okanagan Lake in the Okanagan Valley of British Columbia, Canada. Its name derives from a native term for "grizzly bear". Kelowna ranks as the 22nd largest metropolitan area in Canada. Nearby communities include West Kelowna to the west across Okanagan Lake, Lake Country and then Vernon to the [19:14] <+blogger> north, as well as Peachland to the southwest and, further to the south, Summerland and Penticton. @ http://en.wikipedia.org/wiki/Kelowna
Code: Select all
variable wiki_binds "w wiki wikipedia"
Code: Select all
# BASIC USAGE GUIDE:........................................... #
# #
# .chanset #channel +google #
Code: Select all
14:46:39 <@Cleaner> !google weather warszawa
14:46:44 < BOT> Weather for Warsaw, Poland: 19�C</div>, Tue, <img style="border:1px solid #bbc;margin-bottom:2px" src="/images/weather/mostly_sunny.gif" alt="Mostly Sunny"
title="Mostly Sunny" width=40 height=40 border=0>; Forecast: Tue, Mostly sunny (18�C|6�C); Wed, Sunny (17�C|5�C); Thu, Sunny (16�C|6�C)
Yup, google did something interesting and changed their template which broke certain segments of the reply. The weather stations results can vary so Humidity and Wind speed may or may not be shown for some locations. This is what I've now added. But now since the script reads verbatim, it allows the weather to be entirely in your dialect which google wasn't doing before.cleaner wrote:I found small error, maybe You can fix it:
Code: Select all
14:46:39 <@Cleaner> !google weather warszawa 14:46:44 < BOT> Weather for Warsaw, Poland: 19�C</div>, Tue, <img style="border:1px solid #bbc;margin-bottom:2px" src="/images/weather/mostly_sunny.gif" alt="Mostly Sunny" title="Mostly Sunny" width=40 height=40 border=0>; Forecast: Tue, Mostly sunny (18�C|6�C); Wed, Sunny (17�C|5�C); Thu, Sunny (16�C|6�C)
As you see, depending on the localized server you generate your query on, the template returned is rendered entirely in that dialect (albeit the text for sunny/chance of rain/etc aren't translated, these are merely pictures on the website and the script is simply reading the title for these pictures). This is not just some fancy translating done by the script. The text isn't being sent through !translate to achieve this. All of the multi-language footwork is done entirely by using the websites own localized servers.<speechles> !g weather Warsaw, Poland
<sp33chy> Weather for Warsaw, Poland: 52°F, Current: Clear; Forecast: Thu, Sunny (59°F|42°F); Fri, Chance of rain (57°F|48°F); Sat, Chance of rain (55°F|32°F)
<speechles> !g .pl weather Warsaw, Poland
<sp33chy> Pogoda dla Warszawa: 11 °C, Aktualne: Bezchmurnie; Forecast: czw., Sunny (15°C|6°C); pt., Chance of rain (14°C|9°C); sob., Chance of rain (13°C|0°C)