aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py2
-rw-r--r--config-default.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 500803f33..b7c6ffa70 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -687,7 +687,7 @@ class VideoPermission(metaclass=YAMLGetter):
# Debug mode
-DEBUG_MODE = 'local' in os.environ.get("SITE_URL", "local")
+DEBUG_MODE: bool = _CONFIG_YAML["debug"]
# Paths
BOT_DIR = os.path.dirname(__file__)
diff --git a/config-default.yml b/config-default.yml
index 811640034..40c6d691e 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -1,3 +1,6 @@
+debug: false
+
+
bot:
prefix: "!"
sentry_dsn: !ENV "BOT_SENTRY_DSN"