yashar1 / reddit-comment-bot

Reddit bot that auto replies to comments on set subreddits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple trigger words?

minuskaos opened this issue · comments

Edit, I'm dumb. I;m on the wrong git.

commented

You can add this condition.

keywords = ["hello", "okay"] //create a list containing multiple words

for comment in subreddits.comments(limit=100): //check the first 100 comments.
for keyword in keywords:
if keyword in comment.body and comment.id not in comments_replied_to and comment.author != r.user.me():

Edit, I'm dumb. I'm on the wrong git.