From 612f7a2034007c0ba993c3f991c2624328bd08f3 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Sun, 22 Mar 2020 14:23:50 +0100 Subject: Deseasonify: add autostart env var During development it may be useful to not have the branding daemon start automatically - this env var will make that possible. --- bot/constants.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 691e7760..f552aec7 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -65,6 +65,7 @@ class Channels(NamedTuple): class Branding: cycle_frequency = int(environ.get("CYCLE_FREQUENCY", 3)) # 0: never, 1: every day, 2: every other day, ... + autostart = bool(environ.get("BRANDING_AUTOSTART", True)) # Launch the branding daemon automatically on start-up class Client(NamedTuple): -- cgit v1.2.3