fixed issue with reading boolean env var

This commit is contained in:
Corban-Lee Jones 2024-02-05 22:25:28 +00:00
parent a5eb297f1b
commit 9031cc90c9

View File

@ -11,7 +11,7 @@ from pathlib import Path
# it's important to load environment variables before
# importing the modules that depend on them.
from dotenv import load_dotenv
load_dotenv()
load_dotenv(override=True)
from bot import DiscordBot
from logs import LogSetup
@ -36,7 +36,7 @@ async def main():
if not api_token:
raise ValueError("API Token is empty")
developing = bool(getenv("DEVELOPING", False))
developing = getenv("DEVELOPING", "False") == "True"
# Setup logging settings and mute spammy loggers
logsetup = LogSetup(BASE_DIR)