I am coding a reddit bot in python that answers specific questions.
Here is the code:
if comment.id not in comments_replied_to:
if comment.author != r.user.me():
if "First Question" or "first q" in comment.body:
comment.reply("First Answer")
comments_replied_to.append(comment.id)
elif "Second Question" in comment.body:
comment.reply("Second Answer")
comments_replied_to.append(comment.id)
When I type a comment with:
First Question
the response is:
First Answer
When I type in:
Second Question
the response is:
First Answer
Why is it only firing the first statement?