aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar miki55555115 <[email protected]>2023-08-24 09:56:57 +0200
committerGravatar Amrou Bellalouna <[email protected]>2023-08-26 16:36:18 +0200
commit625ec9373dc0112d0dfb5d8ca97fd4892b39804c (patch)
tree29e4659afc7b693a507b492c4702d29960e0d90f
parentpass 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.md4
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