aboutsummaryrefslogtreecommitdiff
path: root/kjvbot.py
diff options
context:
space:
mode:
authorCamil Staps2016-03-21 09:06:22 +0100
committerCamil Staps2016-03-21 09:06:22 +0100
commit4ad24e8e1ee09b316c14fd440a9f6462563b375b (patch)
tree4ee2ff98897a7f59ef0381e950226ebedc6de4ef /kjvbot.py
parentFix bug (diff)
Fix Song of Solomon / Revelation bug
Diffstat (limited to 'kjvbot.py')
-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):