This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
CosmicD
Op
Posts: 102 Joined: Sat Dec 11, 2004 3:46 pm
Post
by CosmicD » Tue May 17, 2005 5:30 am
Hello,
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"
}
I'm sure I do something wrong because it doesn't respond in private.. what can it be ?
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Tue May 17, 2005 11:00 am
you have a typo in the msgm bind
CosmicD
Op
Posts: 102 Joined: Sat Dec 11, 2004 3:46 pm
Post
by CosmicD » Tue May 17, 2005 2:12 pm
....... one of the reasons that I just dont take th trouble in starting to program... the typos and me never seeing them
thx