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

making new automatic replies #2

Open
03172008 opened this issue Feb 12, 2021 · 3 comments
Open

making new automatic replies #2

03172008 opened this issue Feb 12, 2021 · 3 comments

Comments

@03172008
Copy link
Contributor

would you have to make a new couple of lines in the main.py to add a new automatic reply?

@hackerncoder
Copy link
Owner

hackerncoder commented Feb 12, 2021

Yes?

This is sorta a template to doing it:

if re.search("REGEX_TO_SEARCH_FOR", submission.title, re.IGNORECASE):
with open("ReplyTXTFile", "r") as f:
submission.reply(f.read() + replyEnd)
posts_replied_to.append(submission.id)

@03172008
Copy link
Contributor Author

so i'd replace the regex to search for and the "mobileReply.txt"?

@hackerncoder
Copy link
Owner

Yes. If you need help with regex (it's a b#tch) just tell me.

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