From 4ad24e8e1ee09b316c14fd440a9f6462563b375b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 21 Mar 2016 09:06:22 +0100 Subject: Fix Song of Solomon / Revelation bug --- kjvbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kjvbot.py') 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): -- cgit v1.2.3