mirror of
https://github.com/simon987/opendirectories-bot-2.git
synced 2025-04-10 14:06:41 +00:00
Fix for certain types of comments
This commit is contained in:
parent
1ddf310257
commit
e62b281470
6
run.py
6
run.py
@ -23,7 +23,11 @@ def process_comment(comment, bot):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
return
|
return
|
||||||
if len(lines) > 1:
|
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("?"):
|
if text.startswith("?"):
|
||||||
process_query(comment, bot, text[1:])
|
process_query(comment, bot, text[1:])
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user