From 6d0f38348bc654bbd0b348b186f220f2423744ed Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 23 Jul 2023 00:56:47 +0300 Subject: [PATCH] make snappy downvote --- files/helpers/actions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 97da408bb..060bb58bf 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -64,6 +64,13 @@ def execute_snappy(post:Post, v:User): if post_ping_group_count > 3: body = "Unnecessary and uncalled for ping :marseydownvotemad: two more strikes and you're getting blocked + megadownvoted buddy, don't test your luck" + vote = Vote(user_id=SNAPPY_ID, + vote_type=-1, + post_id=post.id, + real = True + ) + g.db.add(vote) + post.downvotes += 1 elif v.id == CARP_ID: if random.random() < 0.02: body = "i love you carp"