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

Add local blacklist function #21

Open
spiral6 opened this issue Jun 7, 2016 · 5 comments
Open

Add local blacklist function #21

spiral6 opened this issue Jun 7, 2016 · 5 comments

Comments

@spiral6
Copy link
Contributor

spiral6 commented Jun 7, 2016

If the author has commented in their submission and that comment includes the string "mirror" in it, then the bot shouldn't comment.

Rather, if the user sends a message to the bot containing the string "add to blacklist", the bot will save the user's name in a blacklist file, like blacklist.cfg. If the submission is by a blacklisted author, do not comment, and skip that submission.

@spiral6 spiral6 changed the title Prevent mirror by author Add local blacklist function Jun 15, 2016
@spiral6
Copy link
Contributor Author

spiral6 commented Jun 15, 2016

Updated issue.

@kupiakos
Copy link
Owner

kupiakos commented Jul 4, 2016

I use Heroku to host the site, and I currently don't have persistent storage set up, so Lapis doesn't currently store any permanent information. I'll have to take a look into it.

@spiral6
Copy link
Contributor Author

spiral6 commented Jul 5, 2016

I think I have a working implementation of this, I'm going to test it on a test sub of mine, and if it does work, I'll do a pull request.

@kupiakos
Copy link
Owner

kupiakos commented Jul 5, 2016 via email

@spiral6
Copy link
Contributor Author

spiral6 commented Jul 5, 2016

Sure. It might be through SQL that it could be done. In which case my local text file case wouldn't work that well. SQL probably would. I'm going to test it with SQLite, and if it works there, it might just need a bit of tweaking to work on Heroku.

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