aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kjvbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kjvbot.py b/kjvbot.py
index 47259be..a0f1a4f 100644
--- a/kjvbot.py
+++ b/kjvbot.py
@@ -20,7 +20,7 @@ def search(q):
ctx = ''
q = list(filter(lambda s: not s[0] == ':', q))
print(ctx, q)
- refs = check_output(['bible', '-f'] + q).decode('utf-8').splitlines()
+ refs = check_output(['bible', '-f'] + q).decode('utf-8').splitlines()[2:]
return map(get_verses, list(filter(lambda r: r.find(ctx) == 0, refs)))
class InlineHandler(telepot.async.helper.UserHandler):