diff options
author | 2023-08-24 09:56:57 +0200 | |
---|---|---|
committer | 2023-08-26 16:36:18 +0200 | |
commit | 625ec9373dc0112d0dfb5d8ca97fd4892b39804c (patch) | |
tree | 29e4659afc7b693a507b492c4702d29960e0d90f | |
parent | pass bot to get_or_fetch_channel in thread bumper (#2732) (diff) |
fix(tags): resolve SyntaxError in dotenv reset command
-rw-r--r-- | bot/resources/tags/dotenv.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/resources/tags/dotenv.md b/bot/resources/tags/dotenv.md index 14fff3458..bc6c0c766 100644 --- a/bot/resources/tags/dotenv.md +++ b/bot/resources/tags/dotenv.md @@ -12,9 +12,9 @@ TOKEN=a00418c85bff087b49f23923efe40aa5 ``` Next, in your main Python file, you need to load the environment variables from the dotenv file you just created: ```py -from dotenv import load_dotenv() +from dotenv import load_dotenv -load_dotenv(".env") +load_dotenv() ``` The variables from the file have now been loaded into your programs environment, and you can access them using `os.getenv()` anywhere in your program, like this: ```py |