MegaHAL: docstring stuff

This commit is contained in:
Brian S. Stephan 2011-01-07 11:23:46 -06:00
parent 11dd04d4db
commit b4f1c5facd

View File

@ -26,34 +26,26 @@ from extlib import irclib
from Module import Module
class MegaHAL(Module):
"""Have an annoying, dumb, and hilarious chatterbot on IRC."""
def __init__(self, config, server, modlist):
"""
Upon creation, open the MegaHAL brain and get ready for doing actual stuff.
"""
"""Upon creation, open the MegaHAL brain and get ready for doing actual stuff."""
Module.__init__(self, config, server, modlist)
mh_python.initbrain()
def save(self):
"""
Sync the megahal brain.
"""
"""Sync the megahal brain."""
mh_python.cleanup()
def shutdown(self):
"""
Sync the megahal brain.
"""
"""Sync the megahal brain."""
mh_python.cleanup()
def do(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
"""
Say something on IRC if the bot is being addressed, or at least learn what
was said.
"""
"""Say something on IRC if the bot is being addressed, or at least learn what was said."""
# i think this megahal module is corrupting the object while walking it,
# so give it a stupid copy of the string. stupid stupid stupid.