Your not using http version 2.5, which is what the script requires since.. Well, since quite a few versions ago. You can scroll back and find the exact time this became a requirement. There have been others wondering the exact same thing before...VinceDalnet wrote:i think theres a conflict with http.tcl on incith:google
if i load them both wikipedia and other stuffs dont work
i get this error:
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
pls help
Code: Select all
# enable gzip compression for bandwidth savings? Keep in mind
# this semi-breaks some of the present utf-8 work-arounds and
# eggdrop may mangle encodings with gzip compression that it
# doesn't when uncompressed html is used (default). A setting
# of 0 defaults to uncompressed html, a 1 or higher gzip.
# ------
variable use_gzip 1
This lets you stack as many triggers as you like easier without having to clutter up the custom phrasing with repetition.# this is what you can now do
"rsmp3 r3 rs3:rs:%search% +mp3"
# before it would've had to be done like this:
"rsmp3:rs:%search% +mp3"
"r3:rs:%search% +mp3"
"rs3:rs:%search% +mp3"
This happens because locate is actually parsing data from geobytes. They don't actually condone using their services this way, and for that matter free usage at all. But it helps them to advertise so they allow it to an extent. This extent is so many queries in so long of a time. What this time frame is, and how many within it is considered "enough" for them to stop replying to your ip is between you and them really (although you can use the built-in proxy within this script to defeat this ip block). If you experience no message at all, no timeout error, no message saying your bot has been banned from services, etc.. When you see nothing at all after issuing the command it's likely they've implemented a new template to issue over quota usage replies and the script hasn't yet been made aware of it to give a reply. If you could pastebin the ig-debug.txt (if you haven't disabled this, it comes enabled by default with preset config) from your eggdrop's root directory _immediately_ (ig-debug.txt contains the html of the last command used) after experiencing this and post that url to the pastebin here... It then might be possible to catch that message and at least relay that to users over irc rather than a blank stare (nothing).shadrach wrote:'locate' seems not to be working.
Well, it does now. And there is more...VinceDalnet wrote:!g time doesnt display correctly...
So all of you experiencing any issues and able to utf-8 patch your bot should of course investigate doing this. Afterwards, you can safely enable the below config setting:<speechles> <@anahel> speechles with thommey utf patch it's looks great <-- haw, toldja it would
<speechles> you might even get lucky and utf-8 input works too ;P
<anahel> yeah it works too
<anahel> tested it with polish and japanese and it worked
Code: Select all
# enable dirty decoding? This attempts to use the regular "dirty" method
# of rendering html elements which works well with iso8859-1 and other
# latin variants. This does not work well at all with russian, japanese,
# and any other non-latin variants. So keep this at 0 if you want a truly
# multi-language bot, but keep in mind you may see unrendered &x12345; html
# elements. This is because I don't know of a method to transcode these
# to proper utf-8 characters yet.. :P
# ------
variable dirty_decode 0
Code: Select all
variable encoding_conversion_input 0
variable encoding_conversion_output 1
...
variable automagic 1
...
variable utf8workaround 1
speechles wrote:Just a quick quote from a fellow on irc just patching his eggdrop with utf-8 and testing the script for me.<speechles> <@anahel> speechles with thommey utf patch it's looks great <-- haw, toldja it would
<speechles> you might even get lucky and utf-8 input works too ;P
<anahel> yeah it works too
<anahel> tested it with polish and japanese and it worked
Code: Select all
<tomek> !wiki .ja japan
<~Nyaa> ジャパン | ジャパン (Japan) は、英語で日本を意味する単語。 @ http://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%91%E3%83%B3
<tomek> !tr ja@en 私
<~Nyaa> Google says: (ja->en) Translation: Japanese » English
<~Nyaa> I
<tomek> !tr ja@en 日本人
<~Nyaa> Google says: (ja->en) Translation: Japanese » English
<~Nyaa> Japanese
<tomek> !tr pl@en gość
<~Nyaa> Google says: (pl->en) Translation: Polish » English
<~Nyaa> dude
<tomek> !tr en@pl leaf
<~Nyaa> Google says: (en->pl) Translation: English » Polish
<~Nyaa> Liść
<tomek> !wiki .bg bulgaria
<~Nyaa> България — Уикипедия | Република България е държава в Европа. Разположена е в източната част на Балканския полуостров и заема 22% от неговата територия. Площта ѝ е 110 843км², от които 110 510 км² суша и 333 км² водна площ. Населението е около 7640000 души (2007). Столица на
<tomek> !wiki polska
<~Nyaa> Polska – Wikipedia, wolna encyklopedia | Polska, oficjalnie Rzeczpospolita Polska – państwo położone w Europie Środkowej nad Morzem Bałtyckim. Graniczy z Niemcami (na zachodzie), Czechami i Słowacją (na południu), Ukrainą i Białorusią (na wschodzie), na północnym wschodzie z Litwą oraz na północy z Rosją (obwód kaliningradzki). Ponadto polska granica wyłącznej strefy ekonomicznej na Bałtyku graniczy
<~Nyaa> ze strefami Danii i Szwecji. Pod względem powierzchni zajmuje 68. miejsce na świecie i dziewiąte w Europie. Pod względem zaludnienia zajmuje 33. miejsce na świecie. Kraj jest podzielony na 16 województw, które dzielą się na powiaty i gminy. Za umowną datę założenia państwa polskiego jest często przyjmowany rok 966, kiedy władca Mieszko I przyjął chrześc @ http://pl.wikipedia.org/wiki/Polska
<tomek> !tr en@ru russia
<~Nyaa> Google says: (en->ru) Translation: English » Russian
<~Nyaa> Россия
<tomek> !g ぉぃ
<~Nyaa> 8,700,000 Results | 当分「未定」らしい...(ぉぃ @ http://ww4.tiki.ne.jp/~hasuike/ | 中村葵ブログ「中村葵の*ぽかぽか*ぁぉぃ日和(*´∀`*)」by Ameba @ http://ameblo.jp/aoi-nakamura/ | あ゛ぁやっちゃったなぁ… ぉぃ… な毎日w @ http://ameblo.jp/gintoki-sakata-vol2/ | 仕事中に寝る(ぉぃ…) 仕事中に寝る(ぉぃ…)とは、仕事中に寝る(ぉ @ http://www.karadakara.com/dict/keyword/
i'm using 1.6.19+ctcp+ssl but i needed to compile bot again, but to apply patch i needed to edit files manually using patch -p0 < didnt work (it patched only one file)shadrach wrote:Does thommey's patch work for 1.6.19ctcpfix? Do I have to change anything? Code refers to 1.6.18.