egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNOFFICIAL incith-google 2.1x (Nov30,2o12)
Goto page Previous  1, 2, 3 ... 28, 29, 30 ... 56, 57, 58  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Sun Mar 15, 2009 6:13 am    Post subject: Reply with quote

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:
 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!
Back to top
View user's profile Send private message Visit poster's website
Crow50
Voice


Joined: 03 Jun 2008
Posts: 8

PostPosted: Sun Mar 15, 2009 8:34 am    Post subject: !google errors Reply with quote

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
Back to top
View user's profile Send private message
c0re
Voice


Joined: 18 Jan 2009
Posts: 16

PostPosted: Wed Mar 18, 2009 8:07 pm    Post subject: Reply with quote

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
Back to top
View user's profile Send private message
c0re
Voice


Joined: 18 Jan 2009
Posts: 16

PostPosted: Wed Mar 18, 2009 8:16 pm    Post subject: Reply with quote

[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)
Back to top
View user's profile Send private message
MellowB
Voice


Joined: 23 Jan 2008
Posts: 24
Location: Germany

PostPosted: Fri Mar 20, 2009 8:34 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Mar 21, 2009 1:05 am    Post subject: Reply with quote

Quote:
<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:
    # 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 Razz
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Sat Mar 21, 2009 9:29 am    Post subject: Reply with quote

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:
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!
Back to top
View user's profile Send private message Visit poster's website
Crow50
Voice


Joined: 03 Jun 2008
Posts: 8

PostPosted: Sat Mar 21, 2009 10:19 pm    Post subject: Still same errors Reply with quote

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.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Mar 21, 2009 10:26 pm    Post subject: Re: Still same errors Reply with quote

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&safe=off&lr=lang_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/08/03/angelina-brad-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

_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Sun Mar 22, 2009 1:13 am    Post subject: Reply with quote

Here is my config Smile

Code:
# 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! Very Happy
_________________
No Haters, No Spies, Just the love 'tween my thighs!
Back to top
View user's profile Send private message Visit poster's website
Crow50
Voice


Joined: 03 Jun 2008
Posts: 8

PostPosted: Sun Mar 22, 2009 8:31 am    Post subject: Thanks Speechless!!!!!!!!!!!!! Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Mar 22, 2009 11:46 am    Post subject: Reply with quote

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! Very Happy

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.. Razz
Code:
    # 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 Razz
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Tue Mar 24, 2009 10:40 am    Post subject: Reply with quote

Can someone share a "classic" (like old version of tcl) theme for this new color configuration?
Back to top
View user's profile Send private message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Tue Mar 24, 2009 3:01 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Mar 24, 2009 4:24 pm    Post subject: Reply with quote

testebr wrote:
Can someone share a "classic" (like old version of tcl) theme for this new color configuration?
Code:
    # 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 Wink
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. Very Happy
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 28, 29, 30 ... 56, 57, 58  Next
Page 29 of 58

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber