aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-22 18:37:29 +0100
committerGravatar kwzrd <[email protected]>2020-03-22 18:38:06 +0100
commitc0642a12fa64b0be7671f08f00362d96360495e4 (patch)
treed25cb0907ab3e506ed884f9e5bb12bdbf46ab4fb
parentDeseasonify: await coroutine (diff)
Deseasonify: load bool env var properly
Fixes a bug where the `autostart` boolean constant wasn't being loaded properly and would always be set to True, as `bool("False") is True`. The constant now defaults to False.
-rw-r--r--bot/constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py
index d2039c81..c2c76122 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -65,7 +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
+ autostart = environ.get("BRANDING_AUTOSTART", "").lower() == "true" # Launch the branding daemon on start-up
class Client(NamedTuple):