forked from rDrama/rDrama
buff fake votes a bit
parent
9a3fea454b
commit
aa1cc8fb5f
|
@ -109,14 +109,15 @@ def execute_shadowban_viewers_and_voters(v:Optional[User], target:Union[Submissi
|
||||||
if not v or not v.shadowbanned: return
|
if not v or not v.shadowbanned: return
|
||||||
if not target: return
|
if not target: return
|
||||||
if v.id != target.author_id: return
|
if v.id != target.author_id: return
|
||||||
if not (86400 > time.time() - target.created_utc > 60): return
|
if not (86400 > time.time() - target.created_utc > 20):
|
||||||
ti = max(int((time.time() - target.created_utc)/60), 1)
|
return
|
||||||
|
|
||||||
|
ti = max(int((time.time() - target.created_utc)/60), 3)
|
||||||
max_upvotes = min(ti, 13)
|
max_upvotes = min(ti, 13)
|
||||||
rand = randint(0, max_upvotes)
|
rand = randint(0, max_upvotes)
|
||||||
if target.upvotes >= rand: return
|
if target.upvotes >= rand: return
|
||||||
|
|
||||||
amount = randint(0, 3)
|
amount = randint(0, 3)
|
||||||
if amount != 1: return
|
|
||||||
|
|
||||||
target.upvotes += amount
|
target.upvotes += amount
|
||||||
if isinstance(target, Submission):
|
if isinstance(target, Submission):
|
||||||
|
|
Loading…
Reference in New Issue