This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

UNOFFICIAL incith-google 2.1x (Nov30,2o12)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
t
tigrato
Voice
Posts: 22
Joined: Sat Jul 04, 2009 7:46 am

Post by tigrato »

someone have the fix to the youtube script?
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

I'll try fixing it when my connection comes back - at the moment I'm stuck using my slow mobile phone :(
g
goalie
Voice
Posts: 1
Joined: Mon Sep 27, 2010 9:15 am

Post by goalie »

<goalie> !trends .ca 2010-01-01
<genner> 1 happy new year 2010!; 2 tebow cam; 3 dennis haysbert; 4 ephesians 2 8 10; 5 bobby orr; 6 lady antebellum; 7
hgtv dream home; 8 capital one bowl location; 9 what is a buckeye; 10 terrelle pryor; 11 marco sturm; 12
bobby clarke; 13 tournament of roses parade 2010; 14 justin bieber and selena gomez; 15 rose bowl parade; 16
beardtard; 17 hgtv.com/dream home; 18 daryll
<genner> clark; 19 i sing the body electric; 20 phone fake
c
chasba
Voice
Posts: 6
Joined: Thu Jan 10, 2008 8:16 am
Contact:

Post by chasba »

00:09:17 <@chasba> !g 300 sek in nok
00:09:20 <@bot> 300 SEK in NOK Exchange Rates - Swedish Krona Norwegian Krone ... @ http://sek.exchangerates24.com/nok/?q=300 | 300 SEK to NOK exchange rate, currency converter from Sweden Krona ... @ http://www.flightpedia.org/exchange-rat ... k-nok.html | 300 NOK to SEK exchange rate, currency converter from Norway Krone ... @ http://www.flightpedia.org/exchange-rat ... k-sek.html

Not working anymore it seems. :(
x
xREVx
Voice
Posts: 15
Joined: Wed Jul 25, 2007 7:48 pm

Post by xREVx »

yep, math isn't working either :(

"!g 1 + 1" returns nothing
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Rest assured, a new version is close the horizon. It's just that as a I fix and tidy up changes something new up and breaks. The "QUICK" fix to make calculations/conversions work again is:

Code: Select all

        # calculator
        } elseif {[string match "*<img src=/images/calc_img*" $html] == 1} {
          set calc 1
          # remove bold codes from the html, not necessary here.
          regexp -nocase -- {calc_img.*?<h2 class=.*?>(.+?)</h2>} $html - desc
          regsub -all -- {<(.+?)>} $desc "" desc
          if {$::incith::google::short_answers > 0 } { return "$::incith::google::desc_modes[descdecode $desc]" }
          set link ""
change the above to look like it is below:

Code: Select all

        # calculator
        } elseif {[string match "*<img src=/images/calc_img*" $html] || [string match "*<img src=\"/images/icons/onebox/calculator*" $html]} {
          set calc 1
          # remove bold codes from the html, not necessary here.
          regexp -nocase -- {/calc.*?<h2 class=.*?>(.+?)</h2>} $html - desc
          regsub -all -- {<(.+?)>} $desc "" desc
          if {$::incith::google::short_answers > 0 } { return "$::incith::google::desc_modes[descdecode $desc]" }
          set link ""
I still need to fix !book and !ebay (the rest I've already fixed) before I will make an official "release" update. But...very very shortly I'll have everything back up to speed again working as normal.
x
xREVx
Voice
Posts: 15
Joined: Wed Jul 25, 2007 7:48 pm

Post by xREVx »

that worked great speechles, thank you!

i'm looking forward to the official release :)
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

*pokes* speechles :roll:
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
M
MePH
Voice
Posts: 5
Joined: Mon Apr 12, 2010 11:03 am

Post by MePH »

I hope he returns :cry:
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

LMFAO!!!

Returns? I've never left. There is indeed plans to fix this script, and yes it is still being maintained. It's just that I'm also trying to evolve a couple other scripts of mine (twitter, etc). But expect this weekend I shall give you at least something to chew on. It may not fix "ALL" the issues, but will at least evolve the script in a direction where it's clear issues are being addressed. In the meantime, rest assured I am here. Even if not present in this thread. I am active in other sections of this forum as well. ;)
a
anotheruser
Voice
Posts: 8
Joined: Wed Sep 14, 2005 6:26 pm

Post by anotheruser »

!youtube doesn't seem to work. i just get nothing. Is that the same for all?

Debug says redirect 301 and redirect 200
M
MePH
Voice
Posts: 5
Joined: Mon Apr 12, 2010 11:03 am

Post by MePH »

hehe

I kinda meant "return" as in give us a status update in this thread :)
I guess you've got a lot of work ahead of ya.
Nevertheless... good to hear you got an update planned speechless.

:)
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

after patching my bot with utf support, the script's bolding stopped working.

Thoughts?

*EDIT*

I used this: http://eggwiki.org/Utf-8 and it works great. after this though, bolding stopped working on google script.

And here are my settings:

Code: Select all

    # Google translation input/output encodings
    # set these below to either:
    # 0 for automatic encoding
    # 1 for utf-8
    # You may use switches to inverse this behavior on-the-fly. Set them
    # below as well.
    # ------
    variable trans_input 1
    variable trans_output 0
    variable trans_input_t "--swapi"
    variable trans_output_t "--swapo"

    # enable encoding conversion, set this to 1 to enable.
    # with this enabled it will follow the format of encoding conversions listed
    # below. these will affect both input and output and will follow country switch.
    # ------
    variable encoding_conversion_input 1
    variable encoding_conversion_output 1

    # 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
    # ------
    # NOTE: If you bot is properly utf-8 patched, setting this to 1 is recommened.
    # ------
    variable dirty_decode 1

    # 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 when gzip compression that it 
    # doesn't when uncompressed html it used (default). A setting
    # of 0 defaults to uncompressed html, a 1 or higher gzip.
    # ------
    # NOTE: If you do not have Trf or zlib packages setting this
    # to 0 is recommened. Leaving it at 1 is fine as well, as the
    # script will attempt to find these commands or packages every
    # rehash or restart. But to keep gzip from ever being used it
    # is best to set the below variable to 0.
    # NOTE2: If you have Trf or zlib packages present, then this
    # should always be set to 1. You save enormous bandwidth and
    # time using this. If your bot is patched and you have Trf/zlib
    # then you should definitely leave this at 1 and you will never
    # suffer issues.
    # ------
    variable use_gzip 1

    # THIS IS TO BE USED TO DEVELOP A BETTER LIST FOR USE BELOW.
    # To work-around certain encodings, it is now necessary to allow
    # the public a way to trouble shoot some parts of the script on
    # their own. To use these features involves the two settings below.
    # -- DEBUG INFORMATION GOES BELOW --
    # set debug and administrator here
    # this is used for debugging purposes
    # ------
    variable debug 0
    variable debugnick spithash

    # AUTOMAGIC
    # with this set to 1, the bottom encode_strings setting will become
    # irrelevant. This will make the script follow the charset encoding
    # the site is telling the bot it is. 
    # This DOES NOT affect wiki(media/pedia), it will not encode automatic.
    # Wiki(media/pedia) still requires using the encode_strings section below.
    # ------
    # NOTE: If your bot is utf-8 pathced, leave this option at 1, the only
    # time to change this to 0 is if your having rendering problems.
    # ------
    variable automagic 1

    # UTF-8 Work-Around (for eggdrop, this helps automagic)
    # If you use automagic above, you may find that any utf-8 charsets are
    # being mangled. To keep the ability to use automagic, yet when utf-8
    # is the charset defined by automagic, this will make the script instead
    # follow the settings for that country in the encode_strings section below.
    # ------
    # NOTE: If you bot is utf-8 patched, set this to 0. Everyone else, use 1.
    # ------
    variable utf8workaround 0
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
m
madpinger
Voice
Posts: 12
Joined: Sun Oct 03, 2010 3:06 pm

Post by madpinger »

spithash wrote:after patching my bot with utf support, the script's bolding stopped working.

Thoughts?

*EDIT*

I used this: http://eggwiki.org/Utf-8 and it works great. after this though, bolding stopped working on google script.

And here are my settings:
My experience with UTF-8 compiled bots is you need to comment out

Code: Select all

if {![string equal $incithcharset [encoding system]]} { set text [encoding convertto $incithcharset $text] }
in the descdecode proc

At least that's what fixed it for me, iirc
User avatar
spithash
Master
Posts: 248
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

hmm... that didn't work :/
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Post Reply