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 

Problem with scripts

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Fri Aug 10, 2007 1:06 pm    Post subject: Problem with scripts Reply with quote

Hey everyone im new to this site and the whole eggdrop thing so i am in need of some help. I might of missed something so obvious that it exposes me as being a complete newbie at this sort of thing but i have tried everything i know.

I have the UNOFFICIAL-incith-google-v1.96.tcl and iMDB.tcl and i install them and load them fine and do the .chanset thing but when i come to use them they report error message in DCC chat.

incith google gives me the following error message for anything other than !google: Tcl error [incith::google::public_message]: couldn't compile regular expression pattern: quantifier operand invalid. Even though the !google command works it still reutrns the following message in the DCC chat: Tcl error [incith::google::public_message]: extra characters after close-quote.

imbd gives me the following error message as well: Tcl error [imdb_proc]: extra characters after close-quote.

Is there something i have missed to get these scripts to work? Any help is much appreciated. I am running eggdrop v1.6.18, on Linux.

Thank you,
vans
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Aug 10, 2007 1:48 pm    Post subject: Reply with quote

Are you using the latest versions of the scripts?

Check the faq about how to enable "set" inside the dcc console, so you can do ".set errorInfo" to get the full gist of what the errors are.

The last error about extra chars after closed quote may be an error elsewhere in your config file, but it appears to come from a script just cos of how tcl is parsing the config then expecting another quote char and not finding it, so when the next function is run (loading the script), it hits an error.

Read here as well:

http://forum.egghelp.org/viewtopic.php?p=63899#63899

Loading your scripts as suggested in that thread will give you better debug info when loading scripts, and will keep the bot from crashing when loading erroneous scripts.
Back to top
View user's profile Send private message
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Fri Aug 10, 2007 3:16 pm    Post subject: Reply with quote

Hey rosc2112 thanks for help. Yes i am using the latest versions of the scripts. The Faq doesn't mention anything about the .set command so i dont know how to do that. Scripting or even dealing with scripts isnt my strongest suit (as you can probably tell) so anymore more help you could offer me would be great.

Thanks
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri Aug 10, 2007 7:15 pm    Post subject: Reply with quote

vans wrote:
The Faq doesn't mention anything about the .set command so i dont know how to do that.
there is a line in your conf file, looks like this
Code:
unbind dcc n set *dcc:set
this makes the set command unavailable by default. Simply place a comment symbol (#) in front of this line and rehash your bot to enable the set command, which, IMHO, is essential when working with eggdrop.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Sat Aug 11, 2007 6:25 am    Post subject: Reply with quote

mhh i think my eggdro.conf is a lil messed up as it looks a lot different to others i have seen:

Quote:

set chanfile "eggdrop.chan"
set userfile "eggdrop.user"
set userfile-perm "0700"
set pidfile "eggdrop.pid"
set help-path "help/"
set mod-path "modules/"
set script-path "scripts/"
set temp-path "tmp/"
set text-path "text/"
set motd "text/motd"
set telnet-banner "text/banner"
set timezone "GMT"
addlang "english"
set initializedmodules "1"
loadmodule "dns"
loadmodule "channels"
loadmodule "server"
loadmodule "ctcp"
loadmodule "irc"
loadmodule "console"
loadmodule "blowfish"
loadmodule "transfer"
loadmodule "seen"
set console "so"
set max-logs "50"
set max-logsize "100"
set quick-logs "0"
set log-time "1"
set keep-all-logs "0"
set logfile-suffix ".%Y%m%d"
set quiet-save "1"
set switch-logfiles-at "300"
logfile mco * "eggdrop.log"
set my-hostname "v.host.blah.blah"
set my-ip "192.168.0.1"
set nick "BOT"
set altnick "bot"
set botnet-nick "bot"
set username "bot"
set realname "bot"
set keep-nick "1"
set owner "blah"
set ctcp-mode "2"
set lowercase-ctcp "0"
set require-p "1"
set stealth-telnets "1"
set telnet-flood "0:0"
set must-be-owner "2"
set notify-newusers "shinyyy"
set learn-users "0"
set default-flags "-"
set sort-users "1"
set NULL "\0"
listen 33583 "all"
set net-type "5"
set nick-len "15"
set max-bans "45"
set opchars "@"
set use-354 "1"
set check-stoned "1"
set double-mode "1"
set double-server "1"
set double-help "1"
set modes-per-line "6"
set default-port "6667"
set servers {
irc.quakenet.org:6667
}
set global-flood-chan "0:0"
set global-flood-deop "0:0"
set global-flood-kick "0:0"
set global-flood-join "0:0"
set global-flood-ctcp "0:0"
set global-flood-nick "0:0"
set global-aop-delay "0:0"
set global-chanmode ""
set global-stopnethack-mode "0"
set global-revenge-mode "0"
set global-ban-time "0"
set global-exempt-time "0"
set global-invite-time "0"
set global-chanset {
"-autovoice"
"-autohalfop"
"-autoop"
"-protecthalfops"
"-protectfriends"
"-protectops"
"-bitch"
"-dontkickops"
"-enforcebans"
"-greet"
"-inactive"
"-nodesynch"
"-revenge"
"-revengebot"
"-secret"
"-seen"
"-statuslog"
"+cycle"
"+shared"
"+dynamicbans"
"+dynamicexempts"
"+dynamicinvites"
"+userbans"
"+userexempts"
"+userinvites"
}
channel add "#blah"
loadhelp "userinfo.help"
set scripts [lsort -dictionary [glob -nocomplain -- ${script-path}*]]; set x 0; set y 0
foreach script $scripts {
if {(![file isdirectory $script]) && ([string match -nocase *?.tcl $script])} {
set failed [catch {source $script} error]
incr y 1
if {$failed} {
putlog "TCL_ERROR: $script: error: $error"
continue
}
incr x 1
}
}
if {$x} {
putlog "$x of $y scripts initialized."
} else {
putlog "couldn't initialize scripts"
}


i couldnt find the unbind dcc n set *dcc:set in my config file so maybe its this thats making the script not work?If it is can you tell me how to genereate a proper one and BTW this is the default script that came loaded with my eggdrop. Thanks again guys
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Aug 11, 2007 11:09 am    Post subject: Reply with quote

1.6.18 config file
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Sun Aug 12, 2007 5:32 am    Post subject: Reply with quote

Hey all i have put in a proper conf file and incith google works great now, but imdb still returns an error.

[11:16] IMDB_DEBUG permission_result == 1
[11:16] IMDB_DEBUG instance == 0
[11:16] IMDB_DEBUG toput_result == PRIVMSG #rlslog
[11:16] IMDB_DEBUG new instance == 1
[11:16] IMDB_DEBUG searchString: "blah"
<[11:16] IMDB_DEBUG http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=blah
[11:16] IMDB_DEBUG redirect 1
[11:16] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
[11:18] IMDB_DEBUG instance decreased by timer to: 0

This means nothing to me, i have no idea what its trying to say to me. Also now that i have put in the new conf file i seem unable to .rehash the bot. It gets a as far as Userfile loaded, unpacking... and then freezes. I ahve restart the bot to get it to reload scripts etc, would be appreciated if you could help me on this as well. One more thing every 5 minutes the bot spits out this message: [11:25] #blah (+CtNn) : [m/6 o/4 h/0 v/0 n/2 b/0 e/0 I/0] what does it mean? and how do i stop it because i find it annoying.

thanx again guys.
vans
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Aug 12, 2007 10:54 am    Post subject: Reply with quote

vans wrote:
One more thing every 5 minutes the bot spits out this message: [11:25] #blah (+CtNn) : [m/6 o/4 h/0 v/0 n/2 b/0 e/0 I/0] what does it mean? and how do i stop it because i find it annoying.

Code:
.chanset * -statuslog

Search eggdrop.conf for a full description.

vans wrote:
.. but imdb still returns an error.

Quote:
# use or not the imdb debugger (1=enable debug 0=disable debug)
set IMDB_DEBUG 0

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Sun Aug 12, 2007 1:58 pm    Post subject: Reply with quote

thanks for help me get rid of that message.

I dont kno what u mean by the other quotes. I have set the imdb.tcl script to use debugger. This is what i get

[11:16] IMDB_DEBUG permission_result == 1
[11:16] IMDB_DEBUG instance == 0
[11:16] IMDB_DEBUG toput_result == PRIVMSG #rlslog
[11:16] IMDB_DEBUG new instance == 1
[11:16] IMDB_DEBUG searchString: "blah"
[11:16] IMDB_DEBUG http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=blah
[11:16] IMDB_DEBUG redirect 1
[11:16] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
[11:18] IMDB_DEBUG instance decreased by timer to: 0

anyone kno how to fix this script? thanks for the continued support.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Aug 12, 2007 9:13 pm    Post subject: Reply with quote

vans wrote:
thanks for help me get rid of that message.

I dont kno what u mean by the other quotes. I have set the imdb.tcl script to use debugger. This is what i get

[11:16] IMDB_DEBUG permission_result == 1
[11:16] IMDB_DEBUG instance == 0
[11:16] IMDB_DEBUG toput_result == PRIVMSG #rlslog
[11:16] IMDB_DEBUG new instance == 1
[11:16] IMDB_DEBUG searchString: "blah"
[11:16] IMDB_DEBUG http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=blah
[11:16] IMDB_DEBUG redirect 1
[11:16] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
[11:18] IMDB_DEBUG instance decreased by timer to: 0

anyone kno how to fix this script? thanks for the continued support.

Turn off = no messages (which are non-fatal)
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM


Last edited by Alchera on Sun Aug 12, 2007 11:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Aug 12, 2007 9:46 pm    Post subject: Reply with quote

I don't see how disabling debug-information will solve the original issue:
Quote:
[11:16] Tcl error [imdb_proc]: bad index "": must be integer or end?-integer?
Which I'd guess is the reason debugging was enabled in the first place...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Aug 12, 2007 11:08 pm    Post subject: Reply with quote

I actually missed that. Laughing

But either way, the debug option can be turned off leaving just the actual errors (without clutter); which is how I missed it.

I guess the question of which IMDB script is being used should also have been asked.

Quote:
http://akas.imdb.com/find?tt=on;nm=on;mx=5;q=blah

The above points to Suggestions For Improving Your Results
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vans
Voice


Joined: 09 Aug 2007
Posts: 20

PostPosted: Mon Aug 13, 2007 2:42 pm    Post subject: Reply with quote

hey guys im using, iMDB.tcl by NoBody. Im a little confused by some of your suggestions for getting this script to work. If you could be a little more detailed and really spell out to me what i have to do. Smile.

Cheers fellas
vans
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Aug 13, 2007 8:04 pm    Post subject: Reply with quote

I use the B0unTy version and have no problems with it.

iMDB by B0unTy

Reading the Updated Imdb topic may lead you to a better version.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
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