aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-08-23 13:19:53 -0700
committerGravatar MarkKoz <[email protected]>2021-08-23 13:19:53 -0700
commitb6b05251238df2ccff4cab721e5b03e2208aa713 (patch)
tree161f3c7cbb320387a67c95ddc2ee321ef852c562
parentRestrict internal eval to bot owner when in debug mode (diff)
Enable debug mode by default
-rw-r--r--bot/constants.py2
-rw-r--r--config-default.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index b7c6ffa70..a6dd3ab65 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -687,7 +687,7 @@ class VideoPermission(metaclass=YAMLGetter):
# Debug mode
-DEBUG_MODE: bool = _CONFIG_YAML["debug"]
+DEBUG_MODE: bool = _CONFIG_YAML["debug"] == "true"
# Paths
BOT_DIR = os.path.dirname(__file__)
diff --git a/config-default.yml b/config-default.yml
index 40c6d691e..85532ad28 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -1,4 +1,4 @@
-debug: false
+debug: !ENV ["BOT_DEBUG", "true"]
bot: