diff options
author | 2021-06-02 16:21:04 +0530 | |
---|---|---|
committer | 2021-06-02 16:21:04 +0530 | |
commit | bd978b11521d7fd2957d3f8541820029acd26cb5 (patch) | |
tree | b3832bedbd2430789a5f1e4c64b64efb8806dc0d /bot/__init__.py | |
parent | Update branch (diff) | |
parent | Added "centisecond" in trivia_quiz.json (#751) (diff) |
Merge branch 'main' of https://github.com/python-discord/sir-lancebot into feature/stackoverflow
Diffstat (limited to 'bot/__init__.py')
-rw-r--r-- | bot/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index e5ed9d92..85ae4758 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,3 +1,10 @@ +try: + from dotenv import load_dotenv + print("Found .env file, loading environment variables from it.") + load_dotenv(override=True) +except ModuleNotFoundError: + pass + import asyncio import logging import logging.handlers |