Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple trigger words? #5

Open
minuskaos opened this issue Jun 12, 2021 · 2 comments
Open

Multiple trigger words? #5

minuskaos opened this issue Jun 12, 2021 · 2 comments

Comments

@minuskaos
Copy link

minuskaos commented Jun 12, 2021

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

@jatin9909
Copy link

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():

@minuskaos
Copy link
Author

minuskaos commented Jun 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants