diff --git a/files/helpers/const.py b/files/helpers/const.py index 3fbdd1f9f..46f269bf1 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -175,6 +175,7 @@ ROLES={} LOTTERY_ENABLED = True LOTTERY_TICKET_COST = 12 LOTTERY_SINK_RATE = 3 +LOTTERY_DURATION = 60 * 60 * 24 * 7 if SITE in {'rdrama.net', 'devrama.xyz'}: HOLE_COST = 50000 @@ -244,6 +245,10 @@ elif SITE == 'pcmemes.net': BUG_THREAD = 4103 WELCOME_MSG = "Welcome to pcmemes.net! Don't forget to turn off the slur filter [here](/settings/content#slurreplacer)" + + LOTTERY_TICKET_COST = 12 + LOTTERY_SINK_RATE = -8 + LOTTERY_DURATION = 60 * 60 * 24 * 3 elif SITE == 'cringetopia.org': HOLE_COST = 10000 diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index ac503062f..3a79712ec 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -68,9 +68,9 @@ def start_new_lottery_session(): lottery = Lottery() epoch_time = int(time.time()) - # Subtract 4 minutes from one week so cronjob interval doesn't cause the - # time to drift toward over multiple weeks. - one_week_from_now = epoch_time + 60 * 60 * 24 * 7 - (4 * 60) + # Subtract 4 minutes from one cycle so cronjob interval doesn't cause the + # time to drift toward over multiple cycles. + one_week_from_now = epoch_time + LOTTERY_DURATION - (4 * 60) lottery.ends_at = one_week_from_now lottery.is_active = True