Pug’s Place

Never gonna give you up…

PyBlosxom After-Comment Moderation Script/Class

I hacked a very, very rough script together just a few minutes
ago to walk through all your comments newer than X days old, print
them and then ask “keep?” and delete the comment if you say “n”.

It’s a java class (.java included) and a BASH script; you’ll need to modify the path in the bash script. Trivial.

download it here. I’ll have to write a plug-in for PyBlosxom in the future to do a security image like I’ve done at Katie’s blog to stop spammers.

5 Comments so far

  1. Pug October 31st, 2004 10:04 am

    Oh, and as for “Why Java?” — Because Eclispe was already open due to class assignment.

  2. Atoning Unifex October 31st, 2004 10:58 am

    Think it would work with normal blosxom?

  3. Pug October 31st, 2004 11:01 am

    As long as it stores comments as individual text files, yes.

  4. Atoning Unifex November 1st, 2004 1:22 pm

    Each blog entry has a writeback text file that contains all the comments for the blog entry…

  5. Pug November 1st, 2004 3:40 pm

    Then no, this script won’t do it as-is. It’s just a “print text file’s head, ask if we should delete it, delete it.”

    I could write a quick one for you though if you would email me a comment file.

Leave a reply