diff --git a/discord_reminder_bot/settings.py b/discord_reminder_bot/settings.py index 3c8d9a9..085d342 100644 --- a/discord_reminder_bot/settings.py +++ b/discord_reminder_bot/settings.py @@ -8,9 +8,11 @@ from dotenv import load_dotenv load_dotenv(verbose=True) sqlite_location = os.getenv("SQLITE_LOCATION", default="/jobs.sqlite") config_timezone = os.getenv("TIMEZONE", default="Europe/Stockholm") -bot_token = os.getenv("BOT_TOKEN") +bot_token = os.getenv("BOT_TOKEN", default="") log_level = os.getenv(key="LOG_LEVEL", default="INFO") +if not bot_token: + raise ValueError("Missing bot token") # Advanced Python Scheduler jobstores = {"default": SQLAlchemyJobStore(url=f"sqlite://{sqlite_location}")}