bind join * * msg_jmsg1
proc msg_jmsg1 {nick uhost hand channel args} {
global botnick
putserv "NOTICE $nick : Hi $nick, I'm $botnick. Rest of my message here. :)"
return 1
}
how would i make this see if the channel the person join is the excluded channel, the bot are on 6 channels i want it to send the notice on join, then 1 i dont want it to send the notice too.. someone that can help me with this?[/code]
if {[lsearch -exact $::excludedchans $channel] == -1} {
Also, if the channel name will be #foo and in the 'excludedchans' you have #FOO or something different than #foo then it will send the message. I would go for 'setudef'.
Once the game is over, the king and the pawn go back in the same box.
I thought lsearch was case-sensitive when using the -exact switch? Hmm, just looked at the lsearch manpage, guess you'd have to use -exact -ascii for it to be case-sensitive.
And about crashing the bot, sorry! <grin>
Read this post and you'll never have a bot crash from loading scripts:
if {[lsearch -exact $::excludedchans $channel] == -1} {
Also, if the channel name will be #foo and in the 'excludedchans' you have #FOO or something different than #foo then it will send the message. I would go for 'setudef'.
Ok. the TCL working now, but i got a strange behavior from the bot, after added that line i got a huge "lag" or "delay" when the bot auto op me, i know auto op is a bad this to use, but since the channels are protected by channel service i use it any way
Problem:
befor that line i got auto oped 2 sec after i joined, now it takes up to 1 minute befor i got my @, the bot are on 4 channels with maybe 100 users total, so that shouldent be any problem, anyone that have a suggestion about this? and i have a of topic question too, to change the eggdrop version reply i need to add 1 line in the eggdrop.con file, i forgot what line that is. someone that know what i mean?
If it's under heavy join/parts then it gets lagged thus leading to the delay in oping. If you really need this implement a *delay* function else remove it.
Once the game is over, the king and the pawn go back in the same box.