From e62b28147081ce75df29fe3387f4f91f82911711 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 10 Aug 2018 10:41:18 -0400 Subject: [PATCH] Fix for certain types of comments --- run.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index d4a3d8f..bb3dc92 100644 --- a/run.py +++ b/run.py @@ -23,7 +23,11 @@ def process_comment(comment, bot): except ValueError: return if len(lines) > 1: - text = lines[1] + if lines[1] == "https://www.reddit.com/u/opendirectories-bot" and len(lines) > 2: + text = lines[2] + else: + text = lines[1] + if text.startswith("?"): process_query(comment, bot, text[1:]) else: