| View previous topic :: View next topic |
| Author |
Message |
Koo Voice
Joined: 02 Apr 2010 Posts: 37
|
Posted: Sun Aug 01, 2010 5:10 am Post subject: |
|
|
| pogue wrote: | | Currency exchange also is no longer working (ie: !g 1usd to euro) |
Really? I've tested it to my bot using the same script and here's the result:
| Quote: | <@Koo> !g 1usd to euro
<%Angel>1 US dollar = 0.7660 euros |
It worked OK to me.
But I agree, !i is no longer working.  |
|
| Back to top |
|
 |
pogue Voice

Joined: 17 May 2009 Posts: 28
|
Posted: Mon Aug 02, 2010 12:48 am Post subject: |
|
|
| Koo wrote: | | pogue wrote: | | Currency exchange also is no longer working (ie: !g 1usd to euro) |
Really? I've tested it to my bot using the same script and here's the result:
| Quote: | <@Koo> !g 1usd to euro
<%Angel>1 US dollar = 0.7660 euros |
It worked OK to me.  |
I'm getting different outputs.
Same happens when trying to do any currency exchange (pounds, euro, GPB, CAD, etc) _________________ Helpful Tools:
|
|
| Back to top |
|
 |
Koo Voice
Joined: 02 Apr 2010 Posts: 37
|
Posted: Wed Aug 04, 2010 8:32 am Post subject: |
|
|
| pogue wrote: | I'm getting different outputs.
Same happens when trying to do any currency exchange (pounds, euro, GPB, CAD, etc) |
That's odd.
Looks like we have to wait for the update of the script. Hopefully it would be soon.  |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Thu Aug 19, 2010 8:07 pm Post subject: |
|
|
So yeah, I talked to speechles about the images.google thinggie, and it's very simple to make it work again, untill he makes another release of this wonderful TCL
make the line look like this:
| Code: | | set query "http://images.google.${country}/images?q=${input}&safe=${incith::google::safe_search}&btnG=Search+Images&ie=utf-8&sout=1" |
So all in all, you just have to add this to the end of the URL
Thank you speechless for this
!i & !images work now  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
z0rc Voice
Joined: 13 Oct 2008 Posts: 7
|
Posted: Wed Sep 01, 2010 8:57 am Post subject: |
|
|
| Google Translate updated their interface once again. !tr parser is broken now. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Sep 01, 2010 1:27 pm Post subject: |
|
|
At the moment, I'm on very very limited satellite connection. I also, am not at home where I could update the script. I'm at my parents pretty much in the middle of nowhere. Here the fastest dialup is 28.8, hence the satellite connection which puts ridiculous caps on everything. So suffice it to say, when I get back home, the 4th or 5th I plan on updating everything that has broken in my absense.
Until then, I can post from here. Just can't do much else. My pc is on a dedicated broadband connection at home. Once I'm home expect an update shortly afterwards.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
MellowB Voice
Joined: 23 Jan 2008 Posts: 24 Location: Germany
|
Posted: Thu Sep 02, 2010 3:26 pm Post subject: |
|
|
Yay, finally some good news. :Y _________________ On the keyboard of life, always keep one finger on the ESC key. |
|
| Back to top |
|
 |
tmyoungjr Voice
Joined: 24 Aug 2007 Posts: 14
|
Posted: Thu Sep 02, 2010 4:10 pm Post subject: |
|
|
| spithash wrote: | So yeah, I talked to speechles about the images.google thinggie, and it's very simple to make it work again, untill he makes another release of this wonderful TCL
make the line look like this:
| Code: | | set query "http://images.google.${country}/images?q=${input}&safe=${incith::google::safe_search}&btnG=Search+Images&ie=utf-8&sout=1" |
So all in all, you just have to add this to the end of the URL
Thank you speechless for this
!i & !images work now  |
This worked thanks! Looking forward to you getting home and the next update speechles! |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Tue Sep 14, 2010 7:04 am Post subject: |
|
|
no news yet ?  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Wed Sep 15, 2010 3:54 pm Post subject: |
|
|
!ebay fails too...
it shows only the number of the results _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Fri Sep 17, 2010 8:56 am Post subject: |
|
|
You can fix google translate by changing:
| Code: | | if {[regexp -- {<textarea name=utrans.*?">(.+?)</textarea} $html - match]} { regsub -all {<.*?>} $match "" match } | to | Code: | | if {[regexp -- {<div id=autotrans.*?</object></div>(.+?)</div} $html - match]} { regsub -all {<.*?>} $match "" match } |
Yeah, I know, it's not the most elegant regex match ever so maybe somebody can refine it a bit more but otherwise it seems to work for me
EDIT: Ok, I refined the regex match a bit. The above code is as refined as I could make it without breaking it again. _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Fri Sep 17, 2010 1:53 pm Post subject: |
|
|
good call Trixar  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sun Sep 19, 2010 3:18 pm Post subject: |
|
|
well, it doesn't work well though...
it should work like this:
| Code: | [15:11:59] < spithash> !tr amigo
[15:12:35] <@sp33chy> Google: (auto->en) Portuguese to English translation
[15:12:37] <@sp33chy> friend |
but this is how it works:
| Code: | [15:13:06] <@spithash> !tr amigo
[15:13:08] <@nagger> Google: (auto->en)
[15:13:09] <@nagger> friend |
_________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Mon Sep 20, 2010 9:58 am Post subject: |
|
|
You can easily add the functionality you want by changing: | Code: | | if {![regexp -- {</div></div></div></form>(.+?)<img} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect} | to | Code: | | if {![regexp -- {<h3 id=headingtext>(.+?)</h3>} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect} |
Speechles: I envy you. You have way more patience than I do when having to deal with changing site layouts, people complaints and general support. You do provide the tools for people to fix bug themselves - all they have to do is bother to. _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Tue Sep 21, 2010 10:26 am Post subject: |
|
|
| Trixar_za wrote: | You can easily add the functionality you want by changing: | Code: | | if {![regexp -- {</div></div></div></form>(.+?)<img} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect} | to | Code: | | if {![regexp -- {<h3 id=headingtext>(.+?)</h3>} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect} |
|
It really works perfect
Thanks Trixar
I'm sure speechles is more than busy lately .. hehe  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
|