remove feature for now
This commit is contained in:
parent
95d6570436
commit
d407915124
1 changed files with 1 additions and 8 deletions
|
@ -107,10 +107,6 @@ def info(inp, notice=None, db=None):
|
||||||
@hook.regex(r'^\? ?(.+)')
|
@hook.regex(r'^\? ?(.+)')
|
||||||
def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input=None):
|
def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input=None):
|
||||||
"?<word> -- Shows what data is associated with <word>."
|
"?<word> -- Shows what data is associated with <word>."
|
||||||
try:
|
|
||||||
prefix_on = bot.config["plugins"]["factoids"].get("prefix", False)
|
|
||||||
except KeyError:
|
|
||||||
prefix_on = False
|
|
||||||
|
|
||||||
db_init(db)
|
db_init(db)
|
||||||
|
|
||||||
|
@ -149,7 +145,4 @@ def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input=
|
||||||
except http.HttpError:
|
except http.HttpError:
|
||||||
message("Could not fetch URL.")
|
message("Could not fetch URL.")
|
||||||
else:
|
else:
|
||||||
if prefix_on:
|
message(result)
|
||||||
message("\x02[{}]:\x02 {}".format(factoid_id, result))
|
|
||||||
else:
|
|
||||||
message(result)
|
|
||||||
|
|
Reference in a new issue