forked from MarseyWorld/MarseyWorld
Site-specific: change lotto for PCM.
parent
c925daf8c6
commit
46520a9f8c
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue