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.

what's wrong here ? (I want to have megahal privately)

Old posts that have not been replied to for several years.
Locked
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

what's wrong here ? (I want to have megahal privately)

Post by CosmicD »

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 ?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

you have a typo in the msgm bind
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

Post by CosmicD »

....... one of the reasons that I just dont take th trouble in starting to program... the typos and me never seeing them :(

thx :)
Locked