From ed7e81e99434703c243e0024c234c07a0f00e693 Mon Sep 17 00:00:00 2001 From: Wouter de Droog Date: Tue, 3 Oct 2023 16:57:57 +0200 Subject: [PATCH] Don't block startup if no env file is found --- src/main/java/nl/minetopiasdb/cookiebot/utils/BotConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/minetopiasdb/cookiebot/utils/BotConfig.java b/src/main/java/nl/minetopiasdb/cookiebot/utils/BotConfig.java index 63d134c..5f32511 100644 --- a/src/main/java/nl/minetopiasdb/cookiebot/utils/BotConfig.java +++ b/src/main/java/nl/minetopiasdb/cookiebot/utils/BotConfig.java @@ -27,7 +27,7 @@ public static BotConfig getInstance() { } public void initialise() { - Dotenv dotenv = Dotenv.load(); + Dotenv dotenv = Dotenv.configure().ignoreIfMissing().load(); BOT_TOKEN = dotenv.get("BOT_TOKEN");