I am new to tcl (this is my first attempt), and I am trying to get the bot to respond with an action on text in the channel
I have the bind in place and everything works, but now I would like to respond with random characters. Random alhpanumerics at least 10 characters in length.
proc randchar {len} {
set t ""
set alphanum "ABCDEFGHIJKLMOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz01234567890"
while {[string length $t] < $len} {
append t [string index $alphanum [rand [string length $alphanum]]]
}
return $t
}