Merge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-06-16 14:34:37 +02:00
commit cef023ded3
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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