A simple binding like this...
bind pubm - * pub_msg
proc pub_msg {nick uhost hand chan text} {
if {![regexp "hello bot" $text]} { return }
putserv "PRIVMSG $chan :$nick, hello "
}
works only if the words digits is equal to "hello bot", and not if the digit is "bot hello!" o something similar....
Anyone have any idea to how to use regular expressions, for this? in example....reply anyway if anyone says hello my beautiful bot, or bot, hello how do you do?
Tnx.... i don't have much familiarity with regular expressions....but i think it can be done.... tnx