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.

Problem with scripts

General support and discussion of Eggdrop bots.
Post Reply
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Problem with scripts

Post by vans »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

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
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

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: Select all

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.
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

mhh i think my eggdro.conf is a lil messed up as it looks a lot different to others i have seen:
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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

1.6.18 config file
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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: Select all

.chanset * -statuslog
Search eggdrop.conf for a full description.
vans wrote:.. but imdb still returns an error.
# 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
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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)
Last edited by Alchera on Sun Aug 12, 2007 11:10 pm, edited 1 time in total.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I don't see how disabling debug-information will solve the original issue:
[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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I actually missed that. :lol:

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.
The above points to Suggestions For Improving Your Results
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Post by vans »

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. :).

Cheers fellas
vans
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
Post Reply