Fixes
This commit is contained in:
parent
4d7c94f6da
commit
d15e4ff3cf
1 changed files with 14 additions and 1 deletions
|
@ -104,8 +104,21 @@ def forget(inp, db=None, input=None, notice=None):
|
|||
notice("I don't know about that.")
|
||||
return
|
||||
|
||||
@hook.command()
|
||||
def info(inp, notice=None, db=None):
|
||||
".info <factoid> -- Shows the source of a factoid."
|
||||
|
||||
db_init(db)
|
||||
|
||||
# attempt to get the factoid from the database
|
||||
data = get_memory(db, inp.strip())
|
||||
|
||||
if data:
|
||||
notice(data)
|
||||
else:
|
||||
notice("Unknown Factoid")
|
||||
|
||||
|
||||
@hook.command("info")
|
||||
@hook.regex(r'^\? ?(.+)')
|
||||
def factoid(inp, say=None, db=None, bot=None, me=None, conn=None, input=None):
|
||||
"?<word> -- Shows what data is associated with <word>."
|
||||
|
|
Reference in a new issue