diff options
author | 2021-05-16 19:01:31 +0100 | |
---|---|---|
committer | 2021-05-16 19:01:31 +0100 | |
commit | a3d7184c2a473bf0a48e9bf4b0eaaf76518a6ce0 (patch) | |
tree | a1110c1155fb80e80dc448ae059ff5ee69be518b /bot/__init__.py | |
parent | chore: use ctx.fetch_message (diff) | |
parent | Merge pull request #623 from python-discord/pipenv-to-poetry (diff) |
Merge branch 'main' of github.com:python-discord/sir-lancebot into vcokltfre/feat/bookmark-reply
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 |