Code: Select all
set hellobib {
{hi too =)}
{yups what's up}
{hmm..}
{yoi..}
{hi..}
{hi there}
{alo!}
{oi}
{aw aw}
{hoayem}
{welcome $nick}
}
bind pubm - "*" pub_haii
proc pub_haii {nick uhost hand chan args} {
global hellobib botnick
if {[regexp -nocase "hai" $args] || [regexp -nocase "hello" $args] > 0} {
set helloline [lindex $hellobib [rand [llength $hellobib]]]
putserv "PRIVMSG $chan :$helloline"
}
the bot always saying: welcome $nick, not welcome "somebody nick"