Code: Select all
set test "This is just a test uh"
set test [concat [lrange $test 0 2] "OOPS" [lrange $test 3 end]]
Code: Select all
Tcl return: This is just OOPS a test uh
Code: Select all
proc bot:announce { text } {
putlog "$text"
}
Code: Select all
set cmd [lindex $rest 0]
if {[string match -nocase $cmd "help"]} { .... }