User Controls
Automatically ban necro bumpers with ban length based on thread age
-
2024-04-30 at 8:52 PM UTCThe 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() -
2024-04-30 at 11:32 PM UTCI 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 -
2024-04-30 at 11:43 PM UTCthe best part about this is lanny doesn't have to do anything and it doesn't affect any specific person
-
2024-04-30 at 11:46 PM UTC
-
2024-05-01 at 12:07 AM UTC
-
2024-05-01 at 12:36 AM UTC