LapisMirror icon indicating copy to clipboard operation
LapisMirror copied to clipboard

Add local blacklist function

Open spiral6 opened this issue 8 years ago • 5 comments

~~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 avatar Jun 07 '16 00:06 spiral6

Updated issue.

spiral6 avatar Jun 15 '16 03:06 spiral6

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.

kupiakos avatar Jul 04 '16 08:07 kupiakos

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.

spiral6 avatar Jul 05 '16 15:07 spiral6

As stated, it needs to work in Heroku to be accepted.

kupiakos avatar Jul 05 '16 16:07 kupiakos

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.

spiral6 avatar Jul 05 '16 21:07 spiral6