I've a small keyword triggering script for megahal that I can use to trigger the bot to answer o nseveral keywords in public, but I also want this privately..
I've tried to change the script as followed:
Code: Select all
bind pubm - "*lesbi*" megahal:rplyall
bind pubm - "*bot*" megahal:rplyall
bind pubm - "bye*" megahal:rplyall
bind pubm - "hi*" megahal:rplyall
bind pubm - "hello*" megahal:rplyall
bind msgm - "*" megahal:replyp
proc megahal:rplyall {nick uhost hand chan text} {
learn $text
set reply [getreply $text]
puthelp "PRIVMSG $chan :$reply"
}
proc megahal:rplyp {nick uhost hand text} {
learn $text
set reply [getreply $text]
puthelp "PRIVMSG $nick :$reply"
}