class documentation

class megahalResponder(responder): (source)

View In Hierarchy

implements a responder based on the megahal ai-bot

Method __init__ starts the megahal program
Method cleanup clean megahal shutdown
Method learn learns msg without responding
Method reply replies to msg, and learns it
Instance Variable bot Undocumented
def __init__(self, bot): (source)

starts the megahal program

def cleanup(self): (source)

clean megahal shutdown

def learn(self, msg): (source)

learns msg without responding

Parameters
msg:stringthe string to learn
def reply(self, msg): (source)

replies to msg, and learns it

Parameters
msg:stringthe string to reply to
Returns
string @returns the answer of the megahal botUndocumented

Undocumented