User Controls

Automatically ban necro bumpers with ban length based on thread age

  1. #1
    Iron Ree African Astronaut [my flyspeck near-blind refund]
    The older the thread bumped, the longer the ban.

    class BannedUser(models.Model):
    user = models.CharField(max_length=100)
    ban_start = models.DateTimeField()
    ban_duration = models.DurationField(default=timedelta(hours=1))
    ban_reason = models.CharField(max_length=100)

    def is_banned(self):
    return self.ban_start + self.ban_duration > timezone.now()

    # Define utility function
    def check_and_ban_user(post):
    oldest_post = Post.objects.order_by('created_at').first()
    if oldest_post:
    post_age = timezone.now() - oldest_post.created_at
    ban_duration = timedelta(hours=post_age.days / 365) # Ban duration based on years
    user = post.author
    banned_user, created = BannedUser.objects.get_or_create(user=user)
    banned_user.ban_start = timezone.now()
    banned_user.ban_duration += ban_duration
    banned_user.ban_reason = "Multiple violations of old post policy"
    banned_user.save()
  2. #2
    infinityshock Black Hole
    I recommend death via lynching, the only punishment suitable for niggers performing such niggerdly behaviors

    This is why niggers should be banned from white man magic
  3. #3
    Iron Ree African Astronaut [my flyspeck near-blind refund]
    the best part about this is lanny doesn't have to do anything and it doesn't affect any specific person
  4. #4
    infinityshock Black Hole
    Originally posted by Iron Ree the best part about this is lanny doesn't have to do anything and it doesn't affect any specific person

    He needs to provide the rope. It's getting expensive nowadays
  5. #5
    Iron Ree African Astronaut [my flyspeck near-blind refund]
    Originally posted by infinityshock I recommend death via lynching, the only punishment suitable for niggers performing such niggerdly behaviors

    This is why niggers should be banned from white man magic

    I said necro bumpers, not negro bumpers
  6. #6
    infinityshock Black Hole
    Originally posted by Iron Ree I said necro bumpers, not negro bumpers

    same difference
Jump to Top