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
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

speechless bud, I've run into a problem which I thought the 'd' version of the script would solve, alas it hasn't and I'm still getting a tcl-error... which is strange since the script was working fine then all of a sudden stopped working for !google weather.

I get the following output in my eggdrop's partyline;

Code: Select all

 Tcl error [incith::google::public_message]: can't read "f2": no such variable 
Oddly enough I don't experience this with any other trigger. They all are functioning correctly. Also, the debug output points me to the correct web result for whatever weather forcast im searching for. It's just that it does not appear in channel results. Infact, no results are appearing, not even a 'No results found' message.
No Haters, No Spies, Just the love 'tween my thighs!
C
Crow50
Voice
Posts: 8
Joined: Tue Jun 03, 2008 8:10 am

!google errors

Post by Crow50 »

Sorry was wrong. With incith-google-v1.98j.tcl loaded I can use !locate but not !google, and with incith-google-1.9.9d loaded nothing works. With regular incith-google the searches work, but I wish it had all the great features speechless added.

Any idea what I am doing wrong? Loaded "- UNOFFICIAL incith:google-1.9.9d" loaded latest version and this is what I get when I typed "!g dancing". When I use the !locate IP this version works. Would love to have some help.

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
Last edited by Crow50 on Thu Mar 19, 2009 1:58 pm, edited 1 time in total.
c
c0re
Voice
Posts: 16
Joined: Sun Jan 18, 2009 4:45 pm

Post by c0re »

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
c
c0re
Voice
Posts: 16
Joined: Sun Jan 18, 2009 4:45 pm

Post by c0re »

[20:14] Tcl error in file 'eggdrop.conf':
[20:14] missing close-brace: possible unbalanced brace in comment
while executing
"namespace eval incith {
namespace eval google {
# GOOGLE
# performs a search on google.
#
proc google {input} {
# local variab..."
(file "scripts/incith-google.tcl" line 1012)
invoked from within
"source scripts/incith-google.tcl"
(file "eggdrop.conf" line 1342)
[20:14] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
M
MellowB
Voice
Posts: 24
Joined: Wed Jan 23, 2008 6:02 am
Location: Germany
Contact:

Post by MellowB »

Did the !gi trigger stop working or is it just me? :E
On the keyboard of life, always keep one finger on the ESC key.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

<speechles> !w eggdrop#features
<sp33chy> Eggdrop | Features Eggdrop is written in the C programming language and features interfaces for C modules and Tcl scripts that allow users to further enhance the functionality of the bot. Due to its popularity, Eggdrop has a plethora of Tcl scripts available to expand its functionality, most of them written by Eggdrop users. Scripts are available to add and extend functionality such as: online
<sp33chy> games, stats, user and channel management, information storage and lookup, greeting channel members, tracking last seen times, botnet management, anti-spam, file serving and distribution (usually via the DCC protocol), IRC services (similar to ChanServ and NickServ), and much more. Eggdrop also features a botnet, which allows multip @ http://en.wikipedia.org/wiki/Eggdrop#Features [1
<sp33chy> Redirect(s)]
This is how the new output can look if you customize a color-theme accordingly.

Code: Select all

    # description mode/demode
    variable desc_modes "\00309"
    variable desc_demodes "\003"
    # link mode/demode
    variable link_modes "\00306\037"
    variable link_demodes "\037\003"
    # totals mode/demode
    variable total_modes "\00307"
    variable total_demodes "\003"
    # error mode/demode
    variable error_modes "\00304"
    variable error_demodes "\003"

    # break and seperator need more than modes
    # you also enter the appropriate character you wish used.
    variable break " \00302@\003 "
    variable seperator " \00304|\003 "
As you can see, there are modes and demodes. This is required because of how the script is now splitting lines. It does this by counting occurences of modes (color/bold/underline) and if an odd amount is found, the script will find the last modes used on that line and apply them to the beginning of the next line, making seamless line splits with any mode present. To use this you must make sure the modes you set, that you set the appropriate demodes to turn it back to plain text.

In break and seperator, you can also add effects, but you must start and end your modes all within the variable. If your not sure how these work feel free to ask and I will explain. I've included color by default in the new release so people can see this for themselves. To disable all of this and return to the previous plaintext state, simply change all mode/demodes into "" and null them out and remove all modes from within break and seperator.

Also corrected google images to function once again, and numerous other little tweaks here and there. As with any major addition there are bound to be a few bugs here or there. If you have any problems or see some mistakes, feel free to shout them out...

Incith:Google v1.9.9e .. Have a fun and enjoy :P
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

Yay, the script is working finally lmao. Took me a while to figure out what you meant with the new modes/demodes but I think I got it in the end.

Just like to point out that the reporting of weather is a bit weird looking, in particular with the degree symbol being substituted.

Code: Select all

Joori: !g weather sydney, nsw
@Idler: [Google] 5,930,000 Results | Weather for Sydney NSW: 22°C, Current: Partly Cloudy, Wind: NW at 11 km/h, Humidity: 69%; Forecast: Sat, Sunny (25°C|17°C); Sun, Chance of rain (24°C|18°C); Mon, Sunny (26°C|19°C) | Sydney weather - NSW Government Portal @ http://www.nsw.gov.au/weather.asp | Sydney weather - local weather forecast - ninemsn weather @ http://weather.ninemsn.com.au
No Haters, No Spies, Just the love 'tween my thighs!
C
Crow50
Voice
Posts: 8
Joined: Tue Jun 03, 2008 8:10 am

Still same errors

Post by Crow50 »

I have loaded Incith:Google v1.9.9e and the !locate IP# works but when I use !google <word>, this is what my bot shows:

(Tcl error [incith::google::private_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent)

If I am doing some thing wrong, please help. I don't know scripting, but really appreciate the people who do. Thanks again.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: Still same errors

Post by speechles »

Crow50 wrote:I have loaded Incith:Google v1.9.9e and the !locate IP# works but when I use !google <word>, this is what my bot shows:

(Tcl error [incith::google::private_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent)

If I am doing some thing wrong, please help. I don't know scripting, but really appreciate the people who do. Thanks again.
http://www.tcl.tk/man/tcl8.4/TclCmd/http.htm#M11

I really should update the package require http to 2.5 and it would alleviate this issue altogether. But, in the meantime.. You need to make sure your tcl version has http package 2.5 loaded, which supports the -urlencoding option.

If it's tcl 8.4, then in your /eggdrop/lib/tcl8.4/ folder simply replace the http.tcl presently there with this one (v2.5.3), and it should work fine.

For tcl 8.5 it's better to use this one (v2.7.1) and replace the one already in /eggdrop/lib/tcl8.5/

Also, if people want to post samples of their color theme's and it's corresponding output so others can understand how this all works it would be fine as well, for example:
girly color theme wrote: # description mode/demode
variable desc_modes "\00313"
variable desc_demodes "\003"
# link mode/demode
variable link_modes "\00311\037"
variable link_demodes "\037\003"
# totals mode/demode
variable total_modes "\00308~"
variable total_demodes "~\003"
# error mode/demode
variable error_modes "\00313**\003 \00311"
variable error_demodes "\003 \00313**\003"

# break and seperator need more than modes
# you also enter the appropriate character you wish used.
variable break " \00309-->\003 "
variable seperator " \00313\002^_^\002\003 "

<speechles> !g .haha haha
<sp33chy> ** Socket Error accessing 'http://www.google.haha/search?q=haha&sa ... all&num=10' .. Does it exist? **

<speechles> !g hello
<sp33chy> ~441,000,000 Results~ ^_^ HELLO! - The place for celebrity news--> http://www.hellomagazine.com/ ^_^ EXCLUSIVE! Brad and Angelina share their --> http://www.hellomagazine.com/film/2008/ ... ad-photos/ ^_^ "Hello" in many languages --> http://www.elite.net/~runner/jennifers/hello.htm ^_^ Hello - Wikipedia, the free
<sp33chy> encycloped --> http://en.wikipedia.org/wiki/Hello

On a black background, this is actually shockingly visible and quite girly.. lmao
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

Here is my config :)

Code: Select all

# description mode/demode
variable desc_modes "\00307"
variable desc_demodes "\003"
# link mode/demode
variable link_modes "\0033\037"
variable link_demodes "\037\003"
# totals mode/demode
variable total_modes "\00307"
variable total_demodes "\003"
# error mode/demode
variable error_modes "\00304"
variable error_demodes "\003"

# break and seperator need more than modes
# you also enter the appropriate character you wish used.
variable break "\00302@\003"
variable seperator "\n"
@Joori: !g bubblegum
@Idler: [Google] 3,390,000 Results
@Idler: [Google] Welcome to the Bubblegum Club Website@http://www.bubblegumclub.com/
@Idler: [Google] WRIGLEY'S HUBBA BUBBA@http://www.bubblegum.com/
@Idler: [Google] Bubblegum - Wikipedia, the free encyclopedia@http://en.wikipedia.org/wiki/Bubblegum
@Idler: [Google] Bubblegum pop - Wikipedia, the free encyclopedia@http://en.wikipedia.org/wiki/Bubblegum_pop
@Idler: [Google]

Note: the \n line seperator causes a blank line to be produced at the end of your results. BTW: this is on a black background! :D
No Haters, No Spies, Just the love 'tween my thighs!
C
Crow50
Voice
Posts: 8
Joined: Tue Jun 03, 2008 8:10 am

Thanks Speechless!!!!!!!!!!!!!

Post by Crow50 »

I can't thank you enough and the http 2.5.3 solved the problem. Thanks again for all the effort the script writers do. :D
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Joori wrote:Note: the \n line seperator causes a blank line to be produced at the end of your results. BTW: this is on a black background! :D
Actually, it isn't your seperator causing the issue. The problem is the description and link modes/demodes are placed, even on a blank line or a line simply composed of empty spaces. To fix this was rather easy, and now should allow people more freedom to express their google searching.
irc wrote:<speechles> !g eggdrop
<sp33chy> ~ 1,490,000 Results ~
<sp33chy> Eggheads.org - Main Index @ http://www.eggheads.org/
<sp33chy> Eggheads.org - Downloads @ http://www.eggheads.org/downloads/
<sp33chy> slennox's eggdrop page @ http://www.egghelp.org/
<sp33chy> egghelp.org: what is an eggdrop? @ http://www.egghelp.org/whatis.htm
Incith:Google v1.9.9f -- Have a fun >:)~

Note: forgot to mention, there is no longer !top and !pop.. gamerankings has changed their format, and now these have become !best and !worst. You can use these to see the best or worst games for each platform.

Update: inspiration hit me, so a new release all within the same day.. :P

Code: Select all

    # Customized Trigger Phrasing?
    # allow customized triggers to be attached to custom phrasing
    # Anything other than 0 will enable and will use the list below.
    variable my_custom 1

    # Custom Trigger Phrases
    # This is used to customize triggers for different sites and
    # append a phrase to the end, format is:
    # "custom-trigger:trigger-to-associate-with:phrase-to-append"
    variable my_customs {
      "ch:g:+site:computerhope.com"
      "eh:g:+site:egghelp.org"
    }
Above is the new addition which allows you the ability to force phrasing into any query with any trigger. So let's say for example you wanted to associate !eh word with !g word +site:egghelp.org. Well as you can see above, it's now possible to do just that. This allows you to append static phrases to the end of your custom triggers and enchances the experience for users as they now have less to type.. enjoy

Incith:Google v1.9.9g ... Ready for action, have a fun :P
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

Can someone share a "classic" (like old version of tcl) theme for this new color configuration?
J
Joori
Voice
Posts: 34
Joined: Fri Mar 24, 2006 8:53 pm
Location: Sydney
Contact:

Post by Joori »

testebr wrote:Can someone share a "classic" (like old version of tcl) theme for this new color configuration?
I'd gladly share if I knew what you meant by 'classic' theme.. actually, all the versions I have dating back from v1.98 have my own colour scheme changes, which have stayed pretty much static to what I had them up untill the 'e' release of v1.99.
No Haters, No Spies, Just the love 'tween my thighs!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

testebr wrote:Can someone share a "classic" (like old version of tcl) theme for this new color configuration?

Code: Select all

    # description mode/demode
    variable desc_modes ""
    variable desc_demodes ""
    # link mode/demode
    variable link_modes ""
    variable link_demodes ""
    # totals mode/demode
    variable total_modes ""
    variable total_demodes ""
    # error mode/demode
    variable error_modes ""
    variable error_demodes ""

    # break and seperator need more than modes
    # you also enter the appropriate character you wish used.
    variable break " @ "
    variable seperator " | "
The classic theme has no color, so simply change all the modes/demodes into "" and empty them so they will have no effect on any text. Then simply remove the colors & mode's from the break/seperator sections, leaving them exactly as they are above. This is the the classic theme as it was originally...

For others wanting colors with backgrounds, this is supported as well as long as you always remember to use double-digits for every color number (00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15). so using a modes of \00307,03 will produce a dark green background with orange text and the demodes of \003 will be needed to return to plaintext and keep the split procedures mode counter able to work correctly.

UPDATE: Seems there were two slight bugs in the new version of the script. One had to do with the new custom trigger phrasing, it now solved and that part works wonderfully now. The other had to do with !best and !worst not following the color theme entirely, this has also been solved and works correctly now.

Incith:Google v1.9.9h .. Have a fun ;)
Once again, find any bugs or spot any problems feel free to shout them out. Need help understanding the settings of the script? Shout out for help, it's fine, the config is quite daunting almost rivaling eggdrop's itself. So I'm sure some people have no idea what some of the settings do, let alone know how to configure them. This is when and where you can ask for help. :D
Post Reply