Made morehelp better for dbadd.

This commit is contained in:
Jeremy Fincher 2003-08-25 20:13:04 +00:00
parent 7932c6078f
commit 5eafec7121

View File

@ -131,6 +131,7 @@ class FunDB(callbacks.Privmsg):
def die(self): def die(self):
self.db.commit() self.db.commit()
self.db.close() self.db.close()
del self.db
def _pluralize(self, string, count, verb=None): def _pluralize(self, string, count, verb=None):
if verb is None: if verb is None:
@ -214,7 +215,12 @@ class FunDB(callbacks.Privmsg):
def dbadd(self, irc, msg, args): def dbadd(self, irc, msg, args):
"""<lart|excuse|insult|praise> <text> """<lart|excuse|insult|praise> <text>
Adds another record to the data referred to in the first argument. Adds another record to the data referred to in the first argument. For
commands that will later respond with an ACTION (lart and praise), $who
should be in the message to show who should be larted or praised. I.e.
'dbadd lart slices $who in half with a free AOL cd' would make the bot,
when it used that lart against, say, jemfinch, to say '/me slices
jemfinch in half with a free AOL cd'
""" """
(table, s) = privmsgs.getArgs(args, needed=2) (table, s) = privmsgs.getArgs(args, needed=2)
table = table.lower() table = table.lower()