Fixed bug
This commit is contained in:
parent
1c374114ec
commit
55676d86d9
1 changed files with 5 additions and 2 deletions
|
@ -111,8 +111,11 @@ def forget(inp, db=None, input=None, notice=None):
|
|||
@hook.regex(r'^\? ?(.+)')
|
||||
def factoid(inp, say=None, db=None, bot=None):
|
||||
"?<word> -- Shows what data is associated with <word>."
|
||||
try:
|
||||
prefix_on = bot.config["plugins"]["factoids"].get("prefix", False)
|
||||
except KeyError:
|
||||
prefix_on = False
|
||||
|
||||
prefix_on = bot.config["plugins"]["factoids"].get("prefix", False)
|
||||
|
||||
db_init(db)
|
||||
|
||||
|
|
Reference in a new issue