I've tried to search for a tcl that greets a specific nick with a specific msg onjoin but no success so far. I also need it to determine the person host so the greets will not go for a wrong place .. any ideas
I know about this. No password is needed. i want the bot to greet the person when he joins the channel, and i need it random, like if he joins now the bot will greet with la la la, then he joins again lets say after a few hours then the bot will greet him with something diff . you know what i mean?
and i want to add a specific host so the bot will not greet the wrong person..
set greetlines {
"la la la la"
"le le le le"
"hmmm.."
}
bind join -|A * greet:special
proc greet:special {nick host hand chan} {
set greet [lindex $::greetlines [rand [llength $::greetlines]]]
putserv "PRIVMSG $chan :$greet"
}
[code]
very basic greeting, just add the person to your bot (no need for him to set pass if you don't wan't him to), then do [b].chattr user +A #channel[/b]
note.. +A is a userset flag, and [b]not[/b] the same as the +a flag
same thing goes to the next $chan == "#channel" check.
strlwr is of course not a tcl command, but a procedure provided by alltools.tcl (i believe). If you do not have alltools.tcl loaded, then you should be using 'string tolower' in place of 'strlwr'.