Hi peeps.
I'm quite new to tcl still and I was wondering if anyone could help me out with this problem.
I want my bot to say Hi or Hello or whatever to anyone who joins a channel, which I have managed to do, but I don't want it to happen EVERY time someone joins, maybe 1:5 ratio. Is there a simple way of doing this ? Here's the script I have made ...
Thanks in advance
- type.
=====================
bind join - * randgreet
proc randgreet {nick host hand channel args} {
global library
puthelp "PRIVMSG $channel :\002$nick\002: [lindex $library [rand
[llength $library]]]" <--- all one line
}
set library {
"Hi"
"Hello"
"You seen my glasses ?"
}
EOF