Posted to tcl by wan at Sun Nov 04 13:02:05 GMT 2007view raw
- proc time_speaks {} {
- global botnick speaks
- set speaks(rmsg) [lindex $speaks(msg) [rand [llength $speaks(msg)]]]
- foreach channel $speaks(chans) {
- putquick "PRIVMSG $chan :$speaks(rmsg)"
- }
- timer $speaks(time) time_speaks
- return 1
- }