say [channel] <text>
Dumps the text to your current console channel (or other specified channel), as if the bot said it.
Examples
.say #NiceChan Hi everyone! This is Lemmon. I'm talking through the bot!
bind pub m !say say
proc say { n u h c t } {
set l [split $t]
set channel [lindex $l 0]
set msg [join [lrange $l 1 end]]
puthelp "privmsg $channel :$msg"
}
correct now
Last edited by tets on Mon May 03, 2010 8:35 am, edited 1 time in total.
@EXEQED:
Please remember that the input is a string, not a list; and thus is not suitable for use with neither lindex nor lrange. Further, lrange returns a list, not a string.
bind pub m !say say
proc say { n u h c t } {
set l [split t]
set channel [lindex $l 0]
set msg [join [lrange $l 1 end]]
puthelp "privmsg $channel :$msg"
}