Skip to content

Commit

Permalink
Don't block startup if no env file is found
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterdedroog committed Oct 3, 2023
1 parent 5ba3499 commit ed7e81e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit ed7e81e

Please sign in to comment.